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

Creating an org with a bad password results in a cryptic error message #80

Closed
tas50 opened this issue Aug 24, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@tas50
Copy link
Contributor

commented Aug 24, 2015

If you pass bad credentials in the grafana_organization LWRP you get the following cryptic error message:

================================================================================
Error executing action `create_if_missing` on resource 'grafana_organization[something]'
================================================================================

NameError
---------
No resource, method, or local variable named `messages' for ` ""'

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/grafana/libraries/api_helper.rb:91:in `handle_response_unauthorized'
/var/chef/cache/cookbooks/grafana/libraries/api_helper.rb:64:in `handle_response'
/var/chef/cache/cookbooks/grafana/libraries/api_helper.rb:23:in `login'
/var/chef/cache/cookbooks/grafana/libraries/organization_api.rb:57:in `get_orgs_list'
/var/chef/cache/cookbooks/grafana/providers/organization.rb:16:in `block in class_from_file'

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/cozy_grafana/recipes/default.rb
@JonathanTron

This comment has been minimized.

Copy link
Contributor

commented Aug 24, 2015

Thanks for catching this one too!

@lock

This comment has been minimized.

Copy link

commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.