From 769526cb323552cbdd99c5858c446f5f297a6ab0 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Tue, 19 Mar 2013 12:13:57 +0200 Subject: [PATCH] Fix a bug in wizard introduced in 37d581b868919aae --- image_creator/dialog_wizard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/image_creator/dialog_wizard.py b/image_creator/dialog_wizard.py index 40c3bfa..9fa2438 100644 --- 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() - 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) -- 1.7.10.4