Merge lp:~jamesbeedy/charm-helpers/add_uid_gid into lp:charm-helpers
Proposed by
james beedy
Status: | Merged |
---|---|
Merged at revision: | 581 |
Proposed branch: | lp:~jamesbeedy/charm-helpers/add_uid_gid |
Merge into: | lp:charm-helpers |
Diff against target: |
190 lines (+103/-8) 2 files modified
charmhelpers/core/host.py (+53/-4) tests/core/test_host.py (+50/-4) |
To merge this branch: | bzr merge lp:~jamesbeedy/charm-helpers/add_uid_gid |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matt Bruzek | Approve | ||
Review via email: mp+295996@code.launchpad.net |
Description of the change
Added uid and gid specification functionality for adduser and addgroup.
Modified adduser and addgroup to include optional uid and gid
specification functionality.
Also added 3 new helper functions uid_exists, gid_exists, and group_exists.
Fixes: Bug #1586693
To post a comment you must log in.
Thanks for the contribution James! Overall I think this kind of change is a good thing and I am interested to see it land. I see that the new arguments are optional so that will not break backwards compatibility with previous callers of this method.
I found a small problem with the cmd array manipulation. By using .append('--uid 1003') that creates a single array element with a space where we want 2 new elements. If you fix that, I can get behind this change.
Thanks for the work I look forward to the next iteration.