Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #3062 additional groups should only be added once. #3072

Merged
merged 1 commit into from
May 31, 2013
Merged

Fix for #3062 additional groups should only be added once. #3072

merged 1 commit into from
May 31, 2013

Conversation

trbs
Copy link
Contributor

@trbs trbs commented May 30, 2013

Also consolidated duplicate groups code into one get_groups_set() method.
Removed unused call to user_group_membership.
Removed sorting operations on set functions cause sets are inherently unordered.
Minor style improvements to match the rest of the code.

The new function will make the order of group names passed to the system command less determistic.
Which was already the case for modify_user_usermod() but not for other methods.
It will also strip out duplicate group names automatically which was not always the case previously.

Also consolidated duplicate groups code into one get_groups_set() method.
Removed unused call to user_group_membership.
Removed sorting operations on set functions cause sets are inherently unordered.
Minor style improvements to match the rest of the code.

The new function will make the order of group names passed to the system command less determistic.
Which was already the case for modify_user_usermod() but not for other methods.
It will also strip out duplicate group names automatically which was not always the case previously.
@mpdehaan
Copy link
Contributor

in queue for testing, thanks! As this is the groups module and affects lots of OSes and such, I may ask some folks in IRC to also help test.

@mpdehaan mpdehaan merged commit b537aff into ansible:devel May 31, 2013
@mpdehaan
Copy link
Contributor

merged, thanks!

removed one stray debug statement about xxx.log

@trbs
Copy link
Contributor Author

trbs commented Jun 1, 2013

yeah found that one.. sorry that it found it's way into the pull request.

@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants