qubes: fix instantiating with no or empty qubes.xml
There is always dom0 (domid=0) added, but it has None as self.xml.
This commit is contained in:
parent
b54305bff1
commit
e4a0cfc8c8
@ -912,6 +912,8 @@ class PropertyHolder(qubes.events.Emitter):
|
|||||||
:param int load_stage: Stage of loading.
|
:param int load_stage: Stage of loading.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
if self.xml is None:
|
||||||
|
return
|
||||||
all_names = set(
|
all_names = set(
|
||||||
prop.__name__ for prop in self.property_list(load_stage))
|
prop.__name__ for prop in self.property_list(load_stage))
|
||||||
for node in self.xml.xpath('./properties/property'):
|
for node in self.xml.xpath('./properties/property'):
|
||||||
|
Loading…
Reference in New Issue
Block a user