mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix PEP8 E713 - test for membership should be "not in"
This commit is contained in:
parent
02e8b01288
commit
5eea0f6208
@ -178,7 +178,7 @@ def parse_zone(zonefile=None, zone=None):
|
||||
if comps[2] == 'NS':
|
||||
zonedict.setdefault('NS', []).append(comps[3])
|
||||
elif comps[2] == 'MX':
|
||||
if not 'MX' in zonedict.keys():
|
||||
if 'MX' not in zonedict.keys():
|
||||
zonedict.setdefault('MX', []).append({'priority': comps[3],
|
||||
'host': comps[4]})
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user