Compare commits

...

5 commits

Author SHA1 Message Date
Michael
4225071122
Merge 69dc514d2b into 05ee6ebc2a 2023-12-01 02:32:33 +00:00
Michael
69dc514d2b
Update 504-firewalld_info-warning 2023-10-29 11:39:37 +01:00
Michael
1efe507ee7
update changelog 2023-10-27 10:53:53 +02:00
Michael
f87aab8ce2
add changelog 504-firewalld_info-warning 2023-10-26 16:27:46 +02:00
Michael
50fc1d1454
warn only when zones were ignored 2023-10-26 15:42:47 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- Only warn about ignored zones in firewalld_info, when there are zones ignored

View file

@ -356,8 +356,9 @@ 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))
warn.append(
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
if ignore_zones:
warn.append(
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
else:
collect_zones = get_all_zones(client)