Skip to content

Commit

Permalink
Fix #4069 optional groups were not being added when new users
Browse files Browse the repository at this point in the history
are created
  • Loading branch information
thatch45 authored and basepi committed Mar 20, 2013
1 parent fc3cc66 commit e4b71ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions salt/states/user.py
Expand Up @@ -312,6 +312,7 @@ def present(
ret['result'] = None
ret['comment'] = 'User {0} set to be added'.format(name)
return ret
groups.extend(present_optgroups)
if __salt__['user.add'](name,
uid=uid,
gid=gid,
Expand Down

0 comments on commit e4b71ac

Please sign in to comment.