domcapabilities: Fix backtrace on python3.9
Apparently we can't set etree 'root.attrib = None' anymore https://bugzilla.redhat.com/show_bug.cgi?id=1869046 Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
e8bf16b983
commit
bea401a2cf
|
@ -269,7 +269,7 @@ class DomainCapabilities(XMLBuilder):
|
|||
def _convert_mode_to_cpu(self, xml):
|
||||
root = ET.fromstring(xml)
|
||||
root.tag = "cpu"
|
||||
root.attrib = None
|
||||
root.attrib = {}
|
||||
arch = ET.SubElement(root, "arch")
|
||||
arch.text = self.arch
|
||||
return ET.tostring(root, encoding="unicode")
|
||||
|
|
Loading…
Reference in New Issue