dom0/qvm-create: fixed couple typos

This commit is contained in:
Alexandre Bezroutchko 2012-10-28 03:49:53 +01:00
parent e35b413c19
commit bee83bea0d

View File

@ -111,7 +111,7 @@ def main():
if options.template is not None:
template = qvm_collection.get_vm_by_name(options.template)
if template is None:
print >> sys.stderr, "There is no (Templete)VM with the name '{0}'".format(options.template)
print >> sys.stderr, "There is no (Template)VM with the name '{0}'".format(options.template)
exit (1)
if not template.is_template():
print >> sys.stderr, "VM '{0}' is not a TemplateVM".format(options.template)
@ -121,7 +121,7 @@ def main():
elif not options.hvm:
if qvm_collection.get_default_template() is None:
print >> sys.stderr, "No default TempleteVM defined!"
print >> sys.stderr, "No default TemplateVM defined!"
exit (1)
else:
template = qvm_collection.get_default_template()