1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 18:45:34 +00:00

[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>
This commit is contained in:
patchback[bot] 2026-05-30 15:11:41 +02:00 committed by GitHub
parent ab08561421
commit 06feb91f2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 131 additions and 0 deletions

4
.github/BOTMETA.yml vendored
View file

@ -159,6 +159,10 @@ files:
maintainers: Ajpantuso
$filters/from_ini.py:
maintainers: sscheib
$filters/from_toml.py:
maintainers: spike77453
$filters/from_toml.yml:
maintainers: spike77453
$filters/groupby_as_dict.py:
maintainers: felixfontein
$filters/hashids.py: