diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-01-25 14:46:53 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-01-25 17:20:29 -0500 |
commit | 5edf4de058d425e3c660d09dd127b6458bc8df65 (patch) | |
tree | 1e3bda3eac1c9ddea9d76df86ef285dbae2ca9a8 | |
parent | 5c762a98519d5935bcf87f7258002da433352a20 (diff) | |
download | virt-manager-5edf4de058d425e3c660d09dd127b6458bc8df65.tar.gz |
xmlbuilder: Only pass xml context to _remove_xpath_node
Was confusing otherwise, and can give us a speedup.
-rw-r--r-- | virtinst/xmlbuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virtinst/xmlbuilder.py b/virtinst/xmlbuilder.py index 9562d540..5e978cd6 100644 --- a/virtinst/xmlbuilder.py +++ b/virtinst/xmlbuilder.py @@ -636,12 +636,12 @@ class XMLProperty(property): node_map = [] if clearlist: - node_map += _tuplify_lists(clearlist, None, "") + node_map += _tuplify_lists(clearlist, None, + [n.nodePath() for n in clearlist]) node_map += [(node, setval, xpath)] for node, val, use_xpath in node_map: if val is None or val is False: - print "remove", use_xpath _remove_xpath_node(ctx, use_xpath, unlinkroot=False) continue |