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:
Severin Leonhardt 2015-10-15 11:16:22 +02:00
parent 18af1670bc
commit 994522e1fa

View File

@ -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