Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Only try to get AdditionalGroups if they are configured. #627

Merged
merged 1 commit into from
Jun 15, 2015

Conversation

mrunalp
Copy link
Contributor

@mrunalp mrunalp commented Jun 12, 2015

Signed-off-by: Mrunal Patel [email protected]

@mrunalp
Copy link
Contributor Author

mrunalp commented Jun 12, 2015

@LK4D4 PTAL

@mrunalp
Copy link
Contributor Author

mrunalp commented Jun 12, 2015

@crosbymichael PTAL

@LK4D4
Copy link
Contributor

LK4D4 commented Jun 12, 2015

LGTM

if err != nil {
return err
var addGroups []int
if config.Config.AdditionalGroups != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't len() > 0 be better here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@mrunalp mrunalp force-pushed the add_groups_check branch from cf1fe6d to ab3d3ce Compare June 12, 2015 17:21
@dqminh
Copy link
Contributor

dqminh commented Jun 15, 2015

LGTM

dqminh added a commit that referenced this pull request Jun 15, 2015
Only try to get AdditionalGroups if they are configured.
@dqminh dqminh merged commit 5dc7ba0 into docker-archive:master Jun 15, 2015
@mrunalp
Copy link
Contributor Author

mrunalp commented Jun 15, 2015

Thanks @dqminh
@LK4D4 new tag for vendoring into docker? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants