split win_shadow commands

This commit is contained in:
Justin Findlay 2014-12-17 02:44:43 -07:00
parent 09d1f953b2
commit 866f94f813

View File

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