mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
split win_shadow commands
This commit is contained in:
parent
09d1f953b2
commit
866f94f813
@ -51,7 +51,7 @@ def set_password(name, password):
|
||||
|
||||
salt '*' shadow.set_password root mysecretpassword
|
||||
'''
|
||||
cmd = 'net user {0} {1}'.format(name, password)
|
||||
ret = __salt__['cmd.run_all'](cmd)
|
||||
cmd = ['net', 'user', name, password]
|
||||
ret = __salt__['cmd.run_all'](cmd, python_shell=False)
|
||||
|
||||
return not ret['retcode']
|
||||
|
Loading…
Reference in New Issue
Block a user