Fix PEP8 E713 - test for membership should be "not in"

This commit is contained in:
Pedro Algarvio 2014-06-06 10:13:15 +01:00
parent 37cdd2b403
commit d6203f1333

View File

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