qubes/vm/qubesvm: fix __init__ wrt .storage attr
This commit is contained in:
parent
6241859dc8
commit
e9b998400d
@ -455,10 +455,8 @@ 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
|
||||||
|
|
||||||
# else: we are creating new VM and attributes came through kwargs
|
|
||||||
assert self.qid < qubes.config.max_qid, "VM id out of bounds!"
|
assert self.qid < qubes.config.max_qid, "VM id out of bounds!"
|
||||||
assert self.name is not None
|
assert self.name is not None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user