mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Refactor of win_xml (2nd attempt) to add support for processing multiple nodes and counting nodes matched by xpath (#53362)
* add multi-node manipulation, delete on xpath match only and count capability to win_xml * fix pep8 and yamllint errors identified by ci tests * fixed bugs when handling multiple elements, multiple attribute nodes and handling for attribute nodes when using xpaths that only select attributes like //@lang. Added more tests and tweaked documentation. * fixed line-too-long error * fixed trailing space errors * trailing whitespace expunged * bump version_added to 2.9 for new changes * fix PSAvoidUsingPositionalParameters sanity check failure * refix sanity check as it broke the msg return value
This commit is contained in:
5
changelogs/fragments/win_xml_refactor.yaml
Normal file
5
changelogs/fragments/win_xml_refactor.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
minor_changes:
|
||||
- win_xml - Behaviour change, module now processes all nodes specified by xpath, not just first encountered.
|
||||
- win_xml - Behaviour change, fragment no longer required when processing element type nodes and state=absent.
|
||||
- win_xml - Some output messages worded differently now the module uses a generic method to save changes.
|
||||
- win_xml - Added 'count' module parameter which will return number of nodes matched by xpath if set to yes/true
|
||||
Reference in New Issue
Block a user