From 2e1696cb16252c33578d309bf5d32e0cded6526c Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Mon, 12 Jan 2015 18:57:37 +0100 Subject: [PATCH] qubes: Fix XML validation test --- qubes/vm/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index e878642e..a98d296b 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -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)