X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/84bc469c7f80281c0fb224f6de72dcdb859aa5f6..76b200cfe0572a263ceed27b13fad1ac52bb7503:/image_creator/dialog_wizard.py diff --git a/image_creator/dialog_wizard.py b/image_creator/dialog_wizard.py index 17204dc..30dc7c6 100644 --- a/image_creator/dialog_wizard.py +++ b/image_creator/dialog_wizard.py @@ -195,9 +195,11 @@ def start_wizard(session): if init_token is None: init_token = "" + distro = session['image'].distro + ostype = session['image'].ostype name = WizardInputPage( "ImageName", "Image Name", "Please provide a name for the image:", - title="Image Name", init=session['image'].distro) + title="Image Name", init=ostype if distro == "unknown" else distro) descr = WizardInputPage( "ImageDescription", "Image Description", @@ -323,6 +325,14 @@ def create_image(session): kamaki.register(wizard['ImageName'], pithos_file, metadata, is_public) out.success('done') + if is_public: + out.output("Sharing md5sum file ...", False) + kamaki.share("%s.md5sum" % name) + out.success('done') + out.output("Sharing metadata file ...", False) + kamaki.share("%s.meta" % name) + out.success('done') + out.output() except ClientError as e: