diff --git a/lib/ansible/modules/files/xml.py b/lib/ansible/modules/files/xml.py old mode 100755 new mode 100644 index 080e24a5499..172723909ea --- a/lib/ansible/modules/files/xml.py +++ b/lib/ansible/modules/files/xml.py @@ -244,7 +244,7 @@ _RE_SPLITSUBLAST = re.compile("^(.*)/(" + _NSIDENT + ")\\[(.*)\\]$") _RE_SPLITONLYEQVALUE = re.compile("^(.*)/text\\(\\)=" + _XPSTR + "$") -def print_match(module, tree, xpath, namespaces): +def do_print_match(module, tree, xpath, namespaces): match = tree.xpath(xpath, namespaces=namespaces) match_xpaths = [] for m in match: @@ -705,7 +705,7 @@ def main(): module.fail_json(msg="Error while parsing path: %s" % e) if print_match: - print_match(module, doc, xpath, namespaces) + do_print_match(module, doc, xpath, namespaces) if count: count_nodes(module, doc, xpath, namespaces)