Commit b25b422b authored by Nikos Skalkotos's avatar Nikos Skalkotos

Fix a KeyError bug in dialog_wizard.py

parent effda5db
......@@ -414,7 +414,8 @@ def create_image(session):
out.clear()
#Sysprep
image.os.sysprep_params.update(wizard['SysprepParams'])
if 'SysprepParams' in wizard:
image.os.sysprep_params.update(wizard['SysprepParams'])
image.os.do_sysprep()
metadata = image.os.meta
......
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