projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84bc469
)
Use OS as img name in wizard if distro is unknown
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 17 May 2013 13:27:13 +0000
(16:27 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 17 May 2013 13:27:13 +0000
(16:27 +0300)
image_creator/dialog_wizard.py
patch
|
blob
|
history
diff --git
a/image_creator/dialog_wizard.py
b/image_creator/dialog_wizard.py
index
17204dc
..
260a5bd
100644
(file)
--- a/
image_creator/dialog_wizard.py
+++ b/
image_creator/dialog_wizard.py
@@
-195,9
+195,11
@@
def start_wizard(session):
if init_token is None:
init_token = ""
+ distro = session['image'].distro
+ ostype = session['image'].ostype
name = WizardInputPage(
"ImageName", "Image Name", "Please provide a name for the image:",
- title="Image Name", init=session['image'].distro)
+ title="Image Name", init=ostype if distro == "unknown" else distro)
descr = WizardInputPage(
"ImageDescription", "Image Description",