mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix firewalld.get_masquerade
['no'] == 'no' is never true. It must be checked if the list contains the string 'no'.
This commit is contained in:
parent
18af1670bc
commit
994522e1fa
@ -403,7 +403,7 @@ def get_masquerade(zone):
|
||||
'''
|
||||
zone_info = list_all(zone)
|
||||
|
||||
if [zone_info[i]['masquerade'][0] for i in zone_info.keys()] == 'no':
|
||||
if 'no' in [zone_info[i]['masquerade'][0] for i in zone_info.keys()]:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user