Compare commits

...

3 commits

Author SHA1 Message Date
Michael
627cefb043
Merge 2990582b41 into 2c52f969e1 2023-12-16 17:53:43 +00:00
mib1185
2990582b41 add changelog 504-firewalld_info-warning 2023-12-16 18:53:39 +01:00
Michael
42f7d48d73 warn only when zones were ignored 2023-12-16 18:53:39 +01: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,6 +356,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: