create: Bring back UUID generation (makes 'customize' happy)

This commit is contained in:
Cole Robinson 2011-07-07 14:39:28 -04:00
parent e9f365f11d
commit 976748cad5

View File

@ -1316,6 +1316,13 @@ class vmmCreate(vmmGObjectUI):
guest = installer.guest_from_installer()
guest.name = name
# Generate UUID (makes customize dialog happy)
try:
guest.uuid = virtinst.util.uuidToString(virtinst.util.randomUUID())
except Exception, e:
self.err.show_err(_("Error setting UUID: %s") % str(e))
return None
# Set up default devices
try:
devs = []