diff --git a/tool/nixvirt.py b/tool/nixvirt.py index 6c0c5b2..89419df 100644 --- a/tool/nixvirt.py +++ b/tool/nixvirt.py @@ -175,7 +175,7 @@ def _fixDefinitionETree(self,objid,specDefETree): mac = lxml.etree.Element("mac") mac.attrib["address"] = addr specDefETree.append(mac) - return specDefETree + return specDefETree return None # https://libvirt.org/html/libvirt-libvirt-storage.html @@ -367,7 +367,7 @@ def define(self): diff = xmldiff.main.diff_trees(oldDefETree,newDefETree) if len(diff) > 0: if self.oc.session.verbose: - difftext = xmldiff.main.diff_trees(oldDefETree,newDefETree,formatter=xmldiff.formatting.DiffFormatter()) + difftext = xmldiff.main.diff_trees(oldDefETree,newDefETree,formatter=xmldiff.formatting.XMLFormatter()) self.vreport("changed:\n" + difftext) self.subject._deactivate() else: