Compare commits

...

7 commits

Author SHA1 Message Date
Michael
f0a59b9afe
Merge b628d71ad4 into 2c52f969e1 2023-12-16 17:04:02 +00:00
Michael
b628d71ad4
add filename extension to changelog 2023-12-16 18:03:58 +01:00
Michael
9f06500fc7
adjust change log fragment 2023-12-16 17:53:08 +01: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:
- firewalld_info - Only warn about ignored zones, when there are zones ignored.

View file

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