1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 10:35:34 +00:00
community.general/plugins/filter
patchback[bot] 06feb91f2b
[PR #12081/8faf8c38 backport][stable-13] Add from_toml filter (#12081) (#12125)
Add `from_toml` filter (#12081) (#12081)

* Add `from_toml` filter (#12081)

* Use tasks/main.yml instead of runme.sh for integration tests

* Renamed filter back to to_toml.py, moved from_toml filter to its own file making use of python's native tomllib

* Remove task to install tomlkit library as it's no longer required for the from_toml filter

* Replace deprecated t.Mapping with collections.abc.Mapping (https://docs.python.org/3/library/typing.html#typing.Mapping)

* Type is not determined when function is called. Let isinstance check ensure value has string type.

(cherry picked from commit 8faf8c3838)

Co-authored-by: spike77453 <spike77453@users.noreply.github.com>
2026-05-30 15:11:41 +02:00
..
accumulate.py
counter.py
crc32.py
dict.py
dict_kv.py
from_csv.py
from_ini.py
from_toml.py
from_toml.yml
groupby_as_dict.py
hashids.py
hashids_decode.yml
hashids_encode.yml
jc.py
json_diff.yml
json_patch.py
json_patch.yml
json_patch_recipe.yml
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
reveal_ansible_type.py
time.py
to_days.yml
to_hours.yml
to_ini.py
to_milliseconds.yml
to_minutes.yml
to_months.yml
to_nice_yaml.yml
to_prettytable.py
to_seconds.yml
to_time_unit.yml
to_toml.py
to_toml.yml
to_weeks.yml
to_yaml.py
to_yaml.yml
to_years.yml
unicode_normalize.py
version_sort.py