-
Notifications
You must be signed in to change notification settings - Fork 83
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
dashboard lookup ignores api key #394
Comments
Hey @montaropdf, thank you for reporting this issue! I'll check the code in the next few days and try to reproduce your problem. However, can you please test your code with the latest version v2.1.0? Thanks :) |
Hi @Nemental, I use a repository of packages provided by my company, I hope they will update it soon for testing with the latest version. Thanks for the quick reply. |
Hi @Nemental, I do notice that the last on https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_dashboard_lookup.html#ansible-collections-community-grafana-grafana-dashboard-lookup Version 1.9.1 is cited as the latest version available. Is the very latest one yet to be officially published in the ansible collections? |
Hey @montaropdf |
@Nemental, the source of the problèm was the ansible python package. it bundles verison 1.9.1 and I was unable to update the collection. I had to remove the package and download the community.grafana collection directly with ansible-galaxy. Now, I have the right version installed and it works perfectly with the example from this issue. I don't know if you can do something to get the ansible python package updated, but clearly this was the issue. From my point of view, the case is closed, I will have to ensure the right version is installed. Thanks for your support. |
SUMMARY
I am trying to collect dashboards using the lookup plugins with an API key.
The plugin generate an exception while switching to the default organization. Normally, this step should be ignored as I specify an api key.
ISSUE TYPE
COMPONENT NAME
community.grafana.grafana_dashboard lookup
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Grafana server version: Grafana v11.1.0 (5b85c4c2fc)
STEPS TO REPRODUCE
In a playbook, targeting localhost, Assign the result of the lookup module to a variable using the set_fact module for example.
The arguments to the lookup module must be 'grafana_dashboard' and a string containing the variables grafana_url and grafana_api_key.
EXPECTED RESULTS
The example above should return all the dashboards in the default organization
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: