Skip to content

Commit

Permalink
groupby_as_dict: mention Jinja2's groupby filter (ansible-collections…
Browse files Browse the repository at this point in the history
…#9040)

Mention Jinja2's groupby filter.
  • Loading branch information
felixfontein authored Oct 19, 2024
1 parent 658637d commit cc72fa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/filter/groupby_as_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
author: Felix Fontein (@felixfontein)
description:
- Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute.
- This filter is similar to the Jinja2 C(groupby) filter. Use the Jinja2 C(groupby) filter if you have multiple entries with the same value,
or when you need a dictionary with list values, or when you need to use deeply nested attributes.
positional: attribute
options:
_input:
Expand Down

0 comments on commit cc72fa0

Please sign in to comment.