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

Add ability to indicate the group name when adding a user #310

Merged
merged 5 commits into from
Sep 26, 2016

Conversation

arichardet
Copy link
Contributor

Can now add a user by specifying either the group name or gid.

@arichardet
Copy link
Contributor Author

#276

Copy link
Contributor

@BrianHicks BrianHicks left a comment

Choose a reason for hiding this comment

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

looks good, just one question

@@ -93,10 +104,17 @@ func (u *User) Check(resource.Renderer) (resource.TaskStatus, error) {

switch {
case userByName != nil:
status.Level = resource.StatusFatal
Copy link
Contributor

Choose a reason for hiding this comment

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

is this case no longer fatal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should not have been fatal. With state=present, if the user exists, we do not change.

@BrianHicks
Copy link
Contributor

LGTM on green

@BrianHicks BrianHicks merged commit ab0a70f into master Sep 26, 2016
@BrianHicks BrianHicks deleted the feature/user-user branch September 26, 2016 15:12
BrianHicks added a commit that referenced this pull request Dec 22, 2016
Add ability to indicate the group name when adding a user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants