mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix PEP8 E713 - test for membership should be "not in"
This commit is contained in:
parent
37cdd2b403
commit
d6203f1333
@ -175,7 +175,7 @@ def started(name):
|
||||
'comment': '',
|
||||
'result': False}
|
||||
volumes = __salt__['glusterfs.list_volumes']()
|
||||
if not name in volumes:
|
||||
if name not in volumes:
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'Volume {0} does not exist'.format(name)
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user