xm was expecting a string and was getting a unistring for machine
[invirt/packages/invirt-xen-config.git] / invirt-database
index 92600e7..6008c7a 100644 (file)
@@ -25,7 +25,7 @@ if 'cdrom_image' in locals():
 memory = machine.memory
 maxmem = '2048'
 check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
-name = prefix + machine.name
+name = prefix + machine_name
 check(re.match('^[0-9a-f-]+$', machine.uuid))
 uuid = machine.uuid