xmlbuilder: minor cleanup

This commit is contained in:
Cole Robinson 2016-05-20 13:29:16 -04:00
parent 635a228f6b
commit 333103adbf

View File

@ -613,9 +613,9 @@ class XMLProperty(property):
_remove_xpath_node(ctx, xpath)
return
node = _get_xpath_node(xmlbuilder._xmlstate.xml_ctx, xpath)
node = _get_xpath_node(ctx, xpath)
if not node:
node = _build_xpath_node(root_node, xpath)
node = _build_xpath_node(ctx, xpath)
if setval is True:
# Boolean property, creating the node is enough