dom0/qvm-create: template_vm->template fix

This commit is contained in:
Marek Marczykowski 2012-03-14 13:34:01 +01:00
parent afe0eee244
commit 32228296ac

View File

@ -106,7 +106,7 @@ def main():
print >> sys.stderr, "A VM with the name '{0}' already exists in the system.".format(vmname) print >> sys.stderr, "A VM with the name '{0}' already exists in the system.".format(vmname)
exit(1) exit(1)
template_vm = None template = None
if options.template is not None: if options.template is not None:
template = qvm_collection.get_vm_by_name(options.template) template = qvm_collection.get_vm_by_name(options.template)
if template is None: if template is None: