mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-16 06:22:21 +00:00
firewalld_info: Use PY2 compatible syntax (#719)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
---
|
---
|
||||||
minor_changes:
|
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).
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ def main():
|
|||||||
collect_zones = list(set(specified_zones) & set(all_zones))
|
collect_zones = list(set(specified_zones) & set(all_zones))
|
||||||
ignore_zones = list(set(specified_zones) - set(collect_zones))
|
ignore_zones = list(set(specified_zones) - set(collect_zones))
|
||||||
if ignore_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:
|
else:
|
||||||
collect_zones = get_all_zones(client)
|
collect_zones = get_all_zones(client)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user