app: fix creating dom0 object when not already present in qubes.xml

It's constant properties are now really constant, no need to provide
them explicitly.
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-01 03:03:44 +01:00
부모 0afee4b05e
커밋 d54cef5554
No known key found for this signature in database
GPG 키 ID: 063938BA42CFA724
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -837,7 +837,7 @@ class Qubes(qubes.PropertyHolder):
if 0 not in self.domains:
self.domains.add(
qubes.vm.adminvm.AdminVM(self, None, qid=0, name='dom0'),
qubes.vm.adminvm.AdminVM(self, None),
_enable_events=False)
# stage 3: load global properties

파일 보기

@ -354,6 +354,9 @@ class BaseVM(qubes.PropertyHolder):
del self.tags
def load_extras(self):
if self.xml is None:
return
# features
for node in self.xml.xpath('./features/feature'):
self.features[node.get('name')] = node.text