dom0/qvm-core: ignore template_vm=None when loading qubes.xml
This should result in more elegant error message in case of error in qubes.xml.
This commit is contained in:
parent
98827c7020
commit
05605f1394
@ -2156,7 +2156,7 @@ class QubesVmCollection(dict):
|
||||
if template_vm is None:
|
||||
print >> sys.stderr, "ERROR: VM '{0}' uses unkown template qid='{1}'!".\
|
||||
format(kwargs["name"], kwargs["template_qid"])
|
||||
|
||||
else:
|
||||
kwargs["template_vm"] = template_vm
|
||||
|
||||
if "label" in kwargs:
|
||||
@ -2377,8 +2377,9 @@ class QubesVmCollection(dict):
|
||||
if template_vm is None:
|
||||
print >> sys.stderr, "ERROR: DisposableVM '{0}' uses unkown template qid='{1}'!".\
|
||||
format(kwargs["name"], kwargs["template_qid"])
|
||||
|
||||
else:
|
||||
kwargs["template_vm"] = template_vm
|
||||
|
||||
kwargs["netvm_vm"] = self.get_default_netvm_vm()
|
||||
|
||||
if kwargs["label"] is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user