You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default variable grafana_datasources contains a typo using the key jsonData as can be seen here. The typo is also carried over to the jinja template used to process this variable.
This typo forces the use of the jsondata key when defining datasources, which could lead to errors when using official YAML configurations from Grafana.
Steps to Reproduce
Define a datasource in the variable grafana_datasources containing the correct key jsonData.
Use the role.
Expected behavior:
The role should create the datasource successfully.
Actual behavior:
The role crashes as the template datasource.json.j2 cannot find the key jsondata.
Reproduces how often:
Every time a datasource is defined containing the key jsonData.
Environment
The release version/s you are using: 2.0.0 of this role
Description
The default variable
grafana_datasources
contains a typo using the keyjsonData
as can be seen here. The typo is also carried over to the jinja template used to process this variable.This typo forces the use of the
jsondata
key when defining datasources, which could lead to errors when using official YAML configurations from Grafana.Steps to Reproduce
grafana_datasources
containing the correct keyjsonData
.Expected behavior:
The role should create the datasource successfully.
Actual behavior:
The role crashes as the template datasource.json.j2 cannot find the key
jsondata
.Reproduces how often:
Every time a datasource is defined containing the key
jsonData
.Environment
Additional Information
https://grafana.com/docs/grafana/latest/datasources/
The text was updated successfully, but these errors were encountered: