summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Gautier <mg@max.gautier.name>2025-01-15 20:26:29 +0100
committerGitHub <noreply@github.com>2025-01-15 20:26:29 +0100
commit35a712588ed4bf8b549a729d9acb41f7fa621d2b (patch)
tree74ae6bc3e0bf1d3b8bcf2626757b915c7ce10beb
parenthost_group_vars - remove unnecessary os.path.join cache (#84549) (diff)
downloadansible-35a712588ed4bf8b549a729d9acb41f7fa621d2b.tar.xz
ansible-35a712588ed4bf8b549a729d9acb41f7fa621d2b.zip
filters/flatten: fix input documentation (#84477)
Flatten input is a list, not a dictionary.
-rw-r--r--lib/ansible/plugins/filter/flatten.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ansible/plugins/filter/flatten.yml b/lib/ansible/plugins/filter/flatten.yml
index ae2d5eab9b..540ca4a075 100644
--- a/lib/ansible/plugins/filter/flatten.yml
+++ b/lib/ansible/plugins/filter/flatten.yml
@@ -7,8 +7,9 @@ DOCUMENTATION:
positional: _input, levels, skip_nulls
options:
_input:
- description: First dictionary to combine.
- type: dict
+ description: List to flatten.
+ type: list
+ elements: any
required: true
levels:
description: Number of recursive list depths to flatten.