mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
use proper arg number
This commit is contained in:
parent
561a416cf3
commit
0324833c9e
@ -432,7 +432,7 @@ def chgroups(name, groups, append=False, root=None):
|
|||||||
if result['retcode'] != 0 and 'not found in' in result['stderr']:
|
if result['retcode'] != 0 and 'not found in' in result['stderr']:
|
||||||
ret = True
|
ret = True
|
||||||
for group in groups:
|
for group in groups:
|
||||||
cmd = ['gpasswd', '-a', '{0}'.format(name), '{1}'.format(group)]
|
cmd = ['gpasswd', '-a', '{0}'.format(name), '{0}'.format(group)]
|
||||||
if __salt__['cmd.retcode'](cmd, python_shell=False) != 0:
|
if __salt__['cmd.retcode'](cmd, python_shell=False) != 0:
|
||||||
ret = False
|
ret = False
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user