From 39b0429a0e667e38174259702993685591ce9e35 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Fri, 17 May 2013 16:27:13 +0300 Subject: [PATCH 1/1] Use OS as img name in wizard if distro is unknown --- image_creator/dialog_wizard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 1.7.10.4