-
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
error on grafana 9.0 #248
Comments
I noticed the same issue with Grafana 9.0.0 and a Prometheus data source. |
For me this is not solved. I have data sources that have never been configured with basic auth, yet the function comparing the current data source and the new one expects there to be something related to basic auth (either user or password, depending on the module version). See
If basicAuth is false, because nothing is configured this will always fail. Now the fun part is, that if you configure basicAuth in the UI with some foobar values, this will work once, but then fail again because Ansible will set basicAuth to false again. If you also configure basicAuth foobar values in Ansible, things "work". The real fun is then, that it does this of course for all kinds of data sources, even those that do not support basicAuth at all (like PostgreSQL) at which part there is no workaround... |
SUMMARY
Datasource module cause error of "KeyError: 'password'".
It seems grafana droped password and basicAuthPassword attributes of datasource object from 9.0.0.
ISSUE TYPE
COMPONENT NAME
datasource module
ANSIBLE VERSION
2.12.5
COLLECTION VERSION
1.4
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
success
ACTUAL RESULTS
https://github.com/ansible-collections/community.grafana/blob/main/plugins/modules/grafana_datasource.py#L504
The text was updated successfully, but these errors were encountered: