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
c2f2e03f38
commit
8048381ee8
@ -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'] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user