Open fabricat-mdb opened 2 days ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @cmprescott @dagwieers @sm4rk0 @tbielawa click here for bot help
Summary
Revamping from https://github.com/ansible/ansible/issues/55051
The documentation of the XML-module is incorrect about the
matches
andprint_match
parts:print_match
is set, thematches
part of the returned dict may be empty, even when matches are found.print_match
is not set, thematches
part may be returned -- not empty -- when thecontent
is requested, contrary to the documentation.xpath
expression.Issue Type
Bug Report
Component Name
xml
Ansible Version
Community.general Version
Configuration
OS / Environment
Target: Amazon Linux 2023
Steps to Reproduce
Run the below mini-playbook as
ansible-playbook test.yml
Expected Results
print_matches
is set, I expect the non-emptymatches
list in the result -- instead it kinda-sorta appears in the msg string.print_matches
is omitted, I expect there to be nomatches
list in the result at all, because documentation says so.content: text
-- the values for each TR should not benull
, in my opinion. I'm trying to get the entire rows so as to be able to manipulate them further...Actual Results
Though matches were found -- and are listed in
msg
, the actualmatches
part is empty:Code of Conduct