Merge lp:~johnsca/charm-helpers/adduser-group into lp:charm-helpers
Proposed by
Cory Johns
Status: | Merged |
---|---|
Merged at revision: | 492 |
Proposed branch: | lp:~johnsca/charm-helpers/adduser-group |
Merge into: | lp:charm-helpers |
Diff against target: |
130 lines (+64/-4) 2 files modified
charmhelpers/core/host.py (+26/-2) tests/core/test_host.py (+38/-2) |
To merge this branch: | bzr merge lp:~johnsca/charm-helpers/adduser-group |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+278649@code.launchpad.net |
Description of the change
Add primary and secondary groups params to host.adduser
This was a change that the big data charms use but was never proposed upstream.
To post a comment you must log in.
Can we have better parameter names than 'group' and 'groups'? eg. primary_group and secondary_groups? The current naming will certainly cause confusion, particularly when the docstring contains no hints for the new parameters.
Some tests would be nice but this is a simple enough update.