xml children module parameter does not exist (#5808)

* Add changelog

* Add integration tests

* Rename children to set_children

* Add PR information

* Update changelogs/fragments/5808-xml-children-parameter-does-not-exist.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Cédric Servais 2023-01-14 18:22:00 +01:00 committed by GitHub
parent 08b0ea700d
commit 6ec049734e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 2 deletions

View file

@ -266,7 +266,7 @@ EXAMPLES = r'''
community.general.xml:
path: /foo/bar.xml
xpath: /business/website
children: []
set_children: []
# In case of namespaces, like in below XML, they have to be explicitly stated.
#
@ -961,7 +961,7 @@ def main():
# add_children && set_children both set?: should have already aborted by now
# set_children set?
if set_children:
if set_children is not None:
set_target_children(module, doc, xpath, namespaces, set_children, input_type)
# add_children set?