Fix a KeyError bug in dialog_wizard.py
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 23 Aug 2013 13:25:52 +0000 (16:25 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 23 Aug 2013 13:25:52 +0000 (16:25 +0300)
image_creator/dialog_wizard.py

index 0856d8a..ffabecf 100644 (file)
@@ -414,7 +414,8 @@ def create_image(session):
         out.clear()
 
         #Sysprep
         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
 
         image.os.do_sysprep()
         metadata = image.os.meta