Commit 769526cb authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix a bug in wizard introduced in 37d581b8

parent baa62724
......@@ -301,9 +301,10 @@ def create_image(session):
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 ...' %
w['ImageRegistration'].lower(), False)
wizard['ImageRegistration'].lower(), False)
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?" \
% w['ImageRegistration'].lower()
% wizard['ImageRegistration'].lower()
if not d.yesno(msg, width=PAGE_WIDTH):
extract_image(session)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment