qubes/vm/qubesvm: fix __init__ wrt .storage attr
This commit is contained in:
parent
6241859dc8
commit
e9b998400d
@ -455,12 +455,10 @@ class QubesVM(qubes.vm.BaseVM):
|
|||||||
self._libvirt_domain = None
|
self._libvirt_domain = None
|
||||||
self._qdb_connection = None
|
self._qdb_connection = None
|
||||||
|
|
||||||
if xml is not None:
|
if xml is None:
|
||||||
return
|
# we are creating new VM and attributes came through kwargs
|
||||||
|
assert self.qid < qubes.config.max_qid, "VM id out of bounds!"
|
||||||
# else: we are creating new VM and attributes came through kwargs
|
assert self.name is not None
|
||||||
assert self.qid < qubes.config.max_qid, "VM id out of bounds!"
|
|
||||||
assert self.name is not None
|
|
||||||
|
|
||||||
# Not in generic way to not create QubesHost() to frequently
|
# Not in generic way to not create QubesHost() to frequently
|
||||||
# XXX this doesn't apply, host is instantiated once
|
# XXX this doesn't apply, host is instantiated once
|
||||||
|
Loading…
Reference in New Issue
Block a user