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:
baa6272
)
Fix a bug in wizard introduced in 37d581b868919aae
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 19 Mar 2013 10:13:57 +0000
(12:13 +0200)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 19 Mar 2013 10:13:57 +0000
(12:13 +0200)
image_creator/dialog_wizard.py
patch
|
blob
|
history
diff --git
a/image_creator/dialog_wizard.py
b/image_creator/dialog_wizard.py
index
40c3bfa
..
9fa2438
100644
(file)
--- a/
image_creator/dialog_wizard.py
+++ b/
image_creator/dialog_wizard.py
@@
-301,9
+301,10
@@
def create_image(session):
out.success('done')
out.output()
out.success('done')
out.output()
- is_public = True if w['ImageRegistration'] == "Public" else False
+ is_public = True if wizard['ImageRegistration'] == "Public" else \
+ False
out.output('Registering %s image with ~okeanos ...' %
out.output('Registering %s image with ~okeanos ...' %
- w['ImageRegistration'].lower(), False)
+ wizard['ImageRegistration'].lower(), False)
kamaki.register(wizard['ImageName'], pithos_file, metadata,
is_public)
out.success('done')
kamaki.register(wizard['ImageName'], pithos_file, metadata,
is_public)
out.success('done')
@@
-316,7
+317,7
@@
def create_image(session):
msg = "The %s image was successfully uploaded and registered with " \
"~okeanos. Would you like to keep a local copy of the image?" \
msg = "The %s image was successfully uploaded and registered with " \
"~okeanos. Would you like to keep a local copy of the image?" \
- % w['ImageRegistration'].lower()
+ % wizard['ImageRegistration'].lower()
if not d.yesno(msg, width=PAGE_WIDTH):
extract_image(session)
if not d.yesno(msg, width=PAGE_WIDTH):
extract_image(session)