Use the description field inputed in the wizard
authorNikos Skalkotos <skalkoto@grnet.gr>
Wed, 8 Aug 2012 13:34:52 +0000 (16:34 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Wed, 8 Aug 2012 13:34:52 +0000 (16:34 +0300)
Make the ImageDescription field of the dialog wizard overwrite the
DESCRIPTION image property.

image_creator/dialog_wizard.py

index e26975e..693588f 100644 (file)
@@ -187,7 +187,9 @@ def extract_image(session):
 
     #Shrink
     size = device.shrink()
+
     metadata.update(device.meta)
+    metadata['DESCRIPTION'] = wizard['ImageDescription']
 
     #MD5
     md5 = MD5(out)