Fix a bug in wizard introduced in 37d581b868919aae
authorNikos Skalkotos <skalkoto@grnet.gr>
Tue, 19 Mar 2013 10:13:57 +0000 (12:13 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Tue, 19 Mar 2013 10:13:57 +0000 (12:13 +0200)
image_creator/dialog_wizard.py

index 40c3bfa..9fa2438 100644 (file)
@@ -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)