[Backport][Stable-2] Backport for #715 and #719 (#735)

* firewalld_info: Use module.warn (#715)

* Use module.warn to display warnings instead of module.exit_json

Fixes: #710

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit d88a3c833c)

* firewalld_info: Use PY2 compatible syntax (#719)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit dbeb4a861d)

---------

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Hideki Saito
2026-05-18 11:58:00 +09:00
committed by GitHub
parent 0b197ad440
commit ec51a15f69
3 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
---
minor_changes:
- firewalld_info - use module.warn instead of passing ``warnings`` to ``exit_json`` (https://github.com/ansible-collections/ansible.posix/issues/710).