firewalld_info: Use PY2 compatible syntax (#719)

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2026-05-15 12:07:12 -07:00
committed by GitHub
parent 4bd25f24e5
commit dbeb4a861d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +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).
- firewalld_info - use module.warn instead of passing ``warnings`` to ``exit_json`` (https://github.com/ansible-collections/ansible.posix/issues/710).

View File

@@ -352,7 +352,7 @@ def main():
collect_zones = list(set(specified_zones) & set(all_zones))
ignore_zones = list(set(specified_zones) - set(collect_zones))
if ignore_zones:
module.warn(f'Please note: zone:({",".join(ignore_zones)}) have been ignored in the gathering process.')
module.warn('Please note: zone:(%s) have been ignored in the gathering process.' % ", ".join(ignore_zones))
else:
collect_zones = get_all_zones(client)