qubes: Fix XML validation test
This commit is contained in:
parent
42d8e67556
commit
2e1696cb16
@ -252,7 +252,9 @@ class BaseVM(qubes.PropertyHolder):
|
||||
|
||||
|
||||
def __xml__(self):
|
||||
element = lxml.etree.Element('domain', id='domain-' + str(self.qid))
|
||||
element = lxml.etree.Element('domain')
|
||||
element.set('id', 'domain-' + str(self.qid))
|
||||
element.set('class', self.__class__.__name__)
|
||||
|
||||
element.append(self.save_properties())
|
||||
|
||||
@ -261,7 +263,7 @@ class BaseVM(qubes.PropertyHolder):
|
||||
node = lxml.etree.Element('service')
|
||||
node.text = service
|
||||
if not self.services[service]:
|
||||
node.set('enabled', 'False')
|
||||
node.set('enabled', 'false')
|
||||
services.append(node)
|
||||
element.append(services)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user