X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/3c33e68a150ccf3b51a86a2c61397ec33195906f..aeb95900f10211f2d3c8ffead154a44121a2d5b5:/image_creator/dialog_main.py diff --git a/image_creator/dialog_main.py b/image_creator/dialog_main.py index 6513344..3082a1c 100644 --- a/image_creator/dialog_main.py +++ b/image_creator/dialog_main.py @@ -146,7 +146,7 @@ def update_background_title(session): MB = 2 ** 20 - size = (dev.meta['SIZE'] + MB - 1) // MB + size = (dev.size + MB - 1) // MB shrinked = 'shrinked' in session and session['shrinked'] postfix = " (shrinked)" if shrinked else '' @@ -205,7 +205,7 @@ def extract_image(session): try: dev = session['device'] if "checksum" not in session: - size = dev.meta['SIZE'] + size = dev.size md5 = MD5(out) session['checksum'] = md5.compute(session['snapshot'], size) @@ -237,7 +237,7 @@ def extract_image(session): def upload_image(session): d = session["dialog"] - size = session['device'].meta['SIZE'] + size = session['device'].size if "account" not in session: d.msgbox("You need to provide your ~okeanos login username before you " @@ -868,8 +868,8 @@ def image_creator(d): "image creation process?\n\nChoose to run the wizard, " \ " to run the snf-image-creator in expert mode or press " \ "ESC to quit the program." \ - % (dev.ostype if dev.ostype == dev.distro else "%s/%s" % - (dev.distro, dev.ostype)) + % (dev.ostype if dev.ostype == dev.distro else "%s (%s)" % + (dev.ostype, dev.distro)) update_background_title(session)