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

This commit is contained in:
Pedro Algarvio 2014-06-06 09:35:18 +01:00
parent c2f2e03f38
commit 8048381ee8

View File

@ -170,7 +170,7 @@ def set_pass(name, password=None, user=None, users=None):
'changes': {}}
if not isinstance(users, list):
users = [users]
if user and (not user in users):
if user and (user not in users):
users.append(user)
cret = __salt__['lxc.set_pass'](name, users=users, password=password)
cret['changes'] = {}