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:
Cole Robinson 2020-08-18 13:49:16 -04:00
parent e8bf16b983
commit bea401a2cf
1 changed files with 1 additions and 1 deletions

View File

@ -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")