Compare commits

...

5 commits

Author SHA1 Message Date
Michael
28b11d5506
Merge 69dc514d2b into 719f7dfebf 2023-11-23 16:21:09 +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

@ -349,6 +349,7 @@ def main():
specified_zones = module.params['zones'] specified_zones = module.params['zones']
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:
warn.append( warn.append(
'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones)) 'Please note: zone:(%s) have been ignored in the gathering process.' % ','.join(ignore_zones))
else: else: