Skip to content

Commit

Permalink
XML formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyYakeley committed Sep 21, 2024
1 parent 7a59a41 commit 1682d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/nixvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1682d67

Please sign in to comment.