saltstack/salt — pull request #2160 by archtaku (2012-10-04 07:47:43+00:00)
Title: Implement #2114, fix group-handling bugs

1) #2114 is implemented, bringing an "optional_groups" parameter to the
user.present state.

2) salt/modules/{groupadd,pw_group}.py had a bug in the "info" function
which resulted in a traceback when called for a nonexistant group.
This is now fixed.

3) A major bug with group handling in the user.present state has been
fixed. See the below comment for a detailed explanation of the bug.

https://github.com/saltstack/salt/issues/2114#issuecomment-9132470