mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Merge 1efe507ee7 into 542643e786
This commit is contained in:
commit
90ba11fabe
2 changed files with 6 additions and 2 deletions
3
changelogs/fragments/504-firewalld_info-warning
Normal file
3
changelogs/fragments/504-firewalld_info-warning
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
trivial:
|
||||
- Only warn about ignored zones in firewalld_info, when there are zones ignored
|
||||
|
|
@ -349,6 +349,7 @@ def main():
|
|||
specified_zones = module.params['zones']
|
||||
collect_zones = list(set(specified_zones) & set(all_zones))
|
||||
ignore_zones = list(set(specified_zones) - set(collect_zones))
|
||||
if ignore_zones:
|
||||
warn.append(
|
||||
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue