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

[chef-server-ctl] Incorrect error messages with user-create #844

Closed
dmccown opened this issue May 26, 2016 · 3 comments
Closed

[chef-server-ctl] Incorrect error messages with user-create #844

dmccown opened this issue May 26, 2016 · 3 comments

Comments

@dmccown
Copy link

dmccown commented May 26, 2016

Given you have a user created already with the following ctl command:

$ chef-server-ctl user-create testuser-1234 Test User [email protected] password
$ chef-server-ctl user-list
pivotal
testuser-1234

If you try to create a second user with the following command:

$ chef-server-ctl user-create testuser-4567 Test User [email protected] password
ERROR: Conflict
Response: User 'testuser-4567' already exists

Through trial and error I figured out the email address was causing the conflict. Could we improve the error message to make it clear what field has the conflict? Maybe show 'email address already in use'?

Version detected in: chef-server-core-12.6.0-1.el6.x86_64

@tylercloke
Copy link
Contributor

What does the API return? Does it return the conflicting field? Otherwise, this will be pretty difficult without some API work.

@stevendanna
Copy link
Contributor

Going to close this as a dup of: #59

@Abhsubba
Copy link

you may created the org-username my mistake, but every problem has some solution.

sudo -s
chef-server-ctl org-delete learndevops

learndevops is my org-name you may have different org

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

No branches or pull requests

4 participants