1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-30 17:06:19 +00:00
community.general/.github
patchback[bot] d58777ff5e
[PR #11423/864695f8 backport][stable-12] Add to_toml filter (#11438)
Add `to_toml` filter (#11423)

* Add to_toml filter

This is based heavily on the to_yaml filter, but
with a pared-down feature set.

* Protect import

* Don't quote datetime as a string

* Use Ansible error types

* Import correct error types

* Don't use AnsibleTypeError

It doesn't seem to be available on older Ansible
core versions.

* Fix antsibull-nox errors

* Install dependencies for to_toml integration test



* Reduce author list to main contributor



* Update version added for to_toml



* Use AnsibleError for missing import



* Use AnsibleFilterError for runtime type check



* Move common code to plugin_utils/_tags.py

* Mark module util as private



* Update BOTMETA for to_toml



* Fix typo

* Correct version number



* Use to_text for to_toml dict key conversions



* Add tomlkit requirement to docs



* Add missing import

* Add aliases for for to_toml integration test

---------


(cherry picked from commit 864695f898)

Co-authored-by: Matt Williams <matt@milliams.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-01-22 07:40:51 +01:00
..
ISSUE_TEMPLATE [stable-12] docs: migrate RTD URLs to docs.ansible.com (#11109) (#11175) 2025-11-19 18:22:29 +01:00
workflows [PR #11200/a8031562 backport][stable-12] Bump actions/checkout from 5 to 6 in the ci group (#11201) 2025-11-24 18:15:35 +01:00
BOTMETA.yml [PR #11423/864695f8 backport][stable-12] Add to_toml filter (#11438) 2026-01-22 07:40:51 +01:00
dependabot.yml Group CI updates. 2025-03-03 19:00:30 +01:00
patchback.yml Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
pull_request_template.md [stable-12] docs: migrate RTD URLs to docs.ansible.com (#11109) (#11175) 2025-11-19 18:22:29 +01:00
pull_request_template.md.license Add extended PR template (#5622) 2023-01-18 07:54:50 +01:00
settings.yml Add simple license headers, not completely at top. (#5080) 2022-08-05 21:31:34 +02:00