Commit 39b0429a authored by Nikos Skalkotos's avatar Nikos Skalkotos

Use OS as img name in wizard if distro is unknown

parent 84bc469c
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment