mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-25 05:23:58 -07:00
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
|
||
|---|---|---|
| .. | ||
| counter.py | ||
| crc32.py | ||
| dict.py | ||
| dict_kv.py | ||
| from_csv.py | ||
| from_ini.py | ||
| groupby_as_dict.py | ||
| hashids.py | ||
| hashids_decode.yml | ||
| hashids_encode.yml | ||
| jc.py | ||
| json_query.py | ||
| keep_keys.py | ||
| lists.py | ||
| lists_difference.yml | ||
| lists_intersect.yml | ||
| lists_mergeby.py | ||
| lists_symmetric_difference.yml | ||
| lists_union.yml | ||
| random_mac.py | ||
| remove_keys.py | ||
| replace_keys.py | ||
| time.py | ||
| to_days.yml | ||
| to_hours.yml | ||
| to_ini.py | ||
| 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 | ||