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] d6168a196b
[PR #8446/1d615419 backport][stable-9] Feature filter replace_keys (#8507)
Feature filter replace_keys (#8446)

* Add filter replace_keys.

* Update examples and integration tests.

* Fix examples and copyright.

* Update documentation, examples and integration tests.

* Implement #8445. Add filter replace_keys

* Fix documentation formatting.

* Fix documentation.

* Fix type(target). Formatting improved.

* Instead of a dictionary, _keys_filter_target_dict returns a list

* No target testing in _keys_filter_params
* Interface changed _keys_filter_params(data, matching_parameter)
* If there are items with equal C(before) the B(first) one will be used.

* Update remove_keys. Interface changed _keys_filter_params(data, matching_parameter)

* The target can't be empty also in _keys_filter_target_dict

* Update plugins/filter/replace_keys.py

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

* Update plugins/filter/replace_keys.py

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

* Update plugins/filter/replace_keys.py

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

* Test attributes before and after are strings in the iteration of target.

* Update plugins/filter/replace_keys.py

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

---------

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

Co-authored-by: Vladimir Botka <vbotka@gmail.com>
2024-06-15 12:00:09 +02:00
..
counter.py
crc32.py
dict.py
dict_kv.py
from_csv.py
from_ini.py fix: Ensuring interpolation is disabled for ConfigParser (#8185) 2024-04-09 08:01:44 +02:00
groupby_as_dict.py
hashids.py
hashids_decode.yml
hashids_encode.yml
jc.py
json_query.py
keep_keys.py [PR #8446/1d615419 backport][stable-9] Feature filter replace_keys (#8507) 2024-06-15 12:00:09 +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 [PR #8475/8f60f3ae backport][stable-9] Update docs lists_mergeby (#8495) 2024-06-13 07:48:02 +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
remove_keys.py [PR #8446/1d615419 backport][stable-9] Feature filter replace_keys (#8507) 2024-06-15 12:00:09 +02:00
replace_keys.py [PR #8446/1d615419 backport][stable-9] Feature filter replace_keys (#8507) 2024-06-15 12:00:09 +02:00
time.py
to_days.yml
to_hours.yml
to_ini.py fix: Ensuring interpolation is disabled for ConfigParser (#8185) 2024-04-09 08:01:44 +02:00
to_milliseconds.yml
to_minutes.yml
to_months.yml
to_seconds.yml
to_time_unit.yml
to_weeks.yml
to_years.yml
unicode_normalize.py
version_sort.py