community.general/plugins
patchback[bot] 459b9f3f9a
[PR #9133/a789bd12 backport][stable-10] Add the accumulate filter (#9220)
Add the accumulate filter (#9133)

* Add the accumulate filter

- Add myself as a maintainer for it.
- Some integration tests.

* accumulate: fix documentation and add test aliases

The aliases file was copied over from
tests/integrations/targets/filter_dict/aliases as the documentation[1]
suggests to use the same group as existing similar tests.

[1]: https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/integration-aliases.html

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

* accumulate: documentation: markup consistency with other plugins

Suggested-by: Felix Fontein <felix@fontein.de>
Suggested-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* filter/accumulate: Validate input is a Sequence

Accepting arbitrary iterables might lead to surprising behavior so we
are stricter on what we accept in the filter.
Relaxing those requirements is easier than retrofitting them, in terms
of backwards compatibility.

Suggested-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Max Gautier <mg@max.gautier.name>

* filter/accumulate: Document the behavior with a string

Signed-off-by: Max Gautier <mg@max.gautier.name>

---------

Signed-off-by: Max Gautier <mg@max.gautier.name>
(cherry picked from commit a789bd128f)

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-02 20:35:15 +01:00
..
action Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8720) 2024-08-07 15:18:58 +02:00
become Type options of become plugins (#8623) 2024-07-21 21:02:49 +02:00
cache use dict comprehension in plugins, part 3 (#8833) 2024-09-08 14:22:37 +02:00
callback Prepare 10.0.0 release (#8921) 2024-10-07 23:37:44 +02:00
connection Type options of connection plugins (#8627) 2024-07-21 21:04:53 +02:00
doc_fragments Update docs with references to man pages (#8983) 2024-10-07 22:00:26 +02:00
filter [PR #9133/a789bd12 backport][stable-10] Add the accumulate filter (#9220) 2024-12-02 20:35:15 +01:00
inventory proxmox inventory: fix urllib3 InsecureRequestWarnings not suppressing when a token is used (#9099) 2024-11-04 19:02:34 +01:00
lookup [PR #9152/5a971587 backport][stable-10] Update docs for github_app_access_token.py (#9164) 2024-11-20 19:31:35 +01:00
module_utils [PR #9190/ab095948 backport][stable-10] redfish_utils module utils: remove redundant code (#9216) 2024-12-02 20:34:40 +01:00
modules [PR #9172/d826dd1c backport][stable-10] opkg: deprecate value "" for force (#9219) 2024-12-02 20:35:06 +01:00
plugin_utils Use dict comprehension in plugins (#8814) 2024-09-01 20:22:53 +02:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00