diff --git a/changelogs/fragments/fix_description.yaml b/changelogs/fragments/fix_description.yaml new file mode 100644 index 00000000..88ecc314 --- /dev/null +++ b/changelogs/fragments/fix_description.yaml @@ -0,0 +1,3 @@ +--- +doc_changes: + - Fix the description of the reduce_on_network filter. diff --git a/docs/ansible.utils.reduce_on_network_filter.rst b/docs/ansible.utils.reduce_on_network_filter.rst index 8d1a4816..033451b0 100644 --- a/docs/ansible.utils.reduce_on_network_filter.rst +++ b/docs/ansible.utils.reduce_on_network_filter.rst @@ -120,7 +120,7 @@ Common return values are documented `here -
Returns whether an address or a network passed as argument is in a network.
+
Returns the filtered list of addresses belonging to the network.

diff --git a/plugins/filter/reduce_on_network.py b/plugins/filter/reduce_on_network.py index 6f00ef25..06a59b02 100644 --- a/plugins/filter/reduce_on_network.py +++ b/plugins/filter/reduce_on_network.py @@ -85,7 +85,7 @@ class mac_linux(netaddr.mac_unix): data: type: bool description: - - Returns whether an address or a network passed as argument is in a network. + - Returns the filtered list of addresses belonging to the network. """