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

grafana_dashboard error get of NoneType object #391

Closed
Nemental opened this issue Aug 7, 2024 · 1 comment · Fixed by #392
Closed

grafana_dashboard error get of NoneType object #391

Nemental opened this issue Aug 7, 2024 · 1 comment · Fixed by #392

Comments

@Nemental
Copy link
Collaborator

Nemental commented Aug 7, 2024

I have a similar issue when using the lookup plugin "grafana_dashboard".

With this task:

  - name: Get all grafana dashboards
    ansible.builtin.set_fact:
      grafana_dashboards: "{{ lookup('community.grafana.grafana_dashboard', 'grafana_url=' ~ grafana_url ~ ' grafana_api_key=' ~ grafana_api_key) }}"

I get

{
  "msg": "An unhandled exception occurred while running the lookup plugin 'community.grafana.grafana_dashboard'. Error was a <class 'AttributeError'>, original message: 'NoneType' object has no attribute 'get'. 'NoneType' object has no attribute 'get'",
  "_ansible_no_log": false
}

ANSIBLE VERSION
ansible-playbook [core 2.15.10]
COLLECTION VERSION
community.grafana 2.0.0
GRAFANA VERSION
Grafana 11.1.3 (Enterprise)

But I have no idea if it is the same issue as above. Also tried with validate_certs=false and get the same results.

Originally posted by @clasch1985 in #303 (comment)

@Nemental
Copy link
Collaborator Author

Nemental commented Aug 7, 2024

Hey @clasch1985,
thank you for reporting your issue! I have created a new issue based on your comment. I will work on it to find a solution.

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 a pull request may close this issue.

1 participant