1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/filter
patchback[bot] 3bca21aa1b
[PR #8456/6f8f12f7 backport][stable-9] Feature filter keep_keys (#8462)
Feature filter keep_keys (#8456)

* Add filter keep_keys. Implement feature request #8438

* Fix comment indentation.

* Fix regex reference.

* Fix indentation.

* Fix isinstance list.

* Update plugins/plugin_utils/keys_filter.py

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

* Update plugins/plugin_utils/keys_filter.py

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

* Update plugins/plugin_utils/keys_filter.py

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

* Update plugins/plugin_utils/keys_filter.py

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

* Update plugins/filter/keep_keys.py

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

* Update documentation, examples, and integration tests.

* _keys_filter_target_str returns tuple of unique target strings if
target is list. Update documentation, function comments, and error
messages.

* Sort maintainers.

* Update plugins/filter/keep_keys.py

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

* Update examples with explicit collection.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6f8f12f762)

Co-authored-by: Vladimir Botka <vbotka@gmail.com>
2024-06-04 07:45:13 +02:00
..
counter.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
crc32.py feat: Add crc32 filter (#5062) 2022-08-21 12:10:31 +02:00
dict.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
dict_kv.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
from_csv.py Update from_csv.py docs (#7296) 2023-09-20 22:02:54 +02:00
from_ini.py fix: Ensuring interpolation is disabled for ConfigParser (#8185) 2024-04-09 08:01:44 +02:00
groupby_as_dict.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
hashids.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
hashids_decode.yml Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
hashids_encode.yml Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
jc.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
json_query.py Add more license statements (#5079) 2022-08-07 13:37:23 +02:00
keep_keys.py [PR #8456/6f8f12f7 backport][stable-9] Feature filter keep_keys (#8462) 2024-06-04 07:45:13 +02:00
lists.py New filters to calculate the union, intersection, difference and symmetric difference of lists by preserving the items order (#7985) 2024-02-23 20:35:09 +01:00
lists_difference.yml New filters to calculate the union, intersection, difference and symmetric difference of lists by preserving the items order (#7985) 2024-02-23 20:35:09 +01:00
lists_intersect.yml New filters to calculate the union, intersection, difference and symmetric difference of lists by preserving the items order (#7985) 2024-02-23 20:35:09 +01:00
lists_mergeby.py Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
lists_symmetric_difference.yml New filters to calculate the union, intersection, difference and symmetric difference of lists by preserving the items order (#7985) 2024-02-23 20:35:09 +01:00
lists_union.yml New filters to calculate the union, intersection, difference and symmetric difference of lists by preserving the items order (#7985) 2024-02-23 20:35:09 +01:00
random_mac.py Add more license statements (#5079) 2022-08-07 13:37:23 +02:00
time.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
to_days.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_hours.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_ini.py fix: Ensuring interpolation is disabled for ConfigParser (#8185) 2024-04-09 08:01:44 +02:00
to_milliseconds.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_minutes.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_months.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_seconds.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_time_unit.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_weeks.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
to_years.yml Start using semantic markup (#6627) 2023-06-10 09:28:40 +02:00
unicode_normalize.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
version_sort.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00