Fix a bug in the kamaki menu
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 24 Aug 2012 12:43:25 +0000 (15:43 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 24 Aug 2012 12:43:25 +0000 (15:43 +0300)
The account info was saved in the token field in .kamakirc

image_creator/dialog_main.py

index 2a6463e..8734345 100644 (file)
@@ -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)