From: Nikos Skalkotos Date: Fri, 17 May 2013 13:27:13 +0000 (+0300) Subject: Use OS as img name in wizard if distro is unknown X-Git-Tag: v0.3~13 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/39b0429a0e667e38174259702993685591ce9e35 Use OS as img name in wizard if distro is unknown --- diff --git a/image_creator/dialog_wizard.py b/image_creator/dialog_wizard.py index 17204dc..260a5bd 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",