From: Nikos Skalkotos Date: Fri, 24 Aug 2012 12:43:25 +0000 (+0300) Subject: Fix a bug in the kamaki menu X-Git-Tag: v0.1~27 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/12da78d57fc8f5ec544d52890c500298a78cbd53 Fix a bug in the kamaki menu The account info was saved in the token field in .kamakirc --- diff --git a/image_creator/dialog_main.py b/image_creator/dialog_main.py index 2a6463e..8734345 100644 --- a/image_creator/dialog_main.py +++ b/image_creator/dialog_main.py @@ -440,7 +440,7 @@ def kamaki_menu(session): del session["token"] else: session["token"] = answer.strip() - Kamaki.save_token(session['account']) + Kamaki.save_token(session['token']) default_item = "Upload" elif choice == "Upload": if upload_image(session): @@ -960,7 +960,7 @@ def main(): while 1: try: out = CompositeOutput([log]) - out.output("Starting %s version %s..." % \ + out.output("Starting %s v%s..." % \ (parser.get_prog_name(), version)) ret = image_creator(d, media, out) sys.exit(ret)