We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f8a2b commit 403a922Copy full SHA for 403a922
grafana_wtf/core.py
@@ -663,10 +663,10 @@ def add(item):
663
# Datasources defined as variables.
664
if "type" in node and node["type"] == "datasource":
665
values = to_list(node.get("current", {}).get("value"))
666
- for ds_name in values:
667
- datasource = self.datasource_by_name.get(ds_name)
+ for ds_uid in values:
+ datasource = self.datasource_by_uid.get(ds_uid)
668
if datasource is None:
669
- log.warning(f"Data source '{ds_name}' not found")
+ log.warning(f"Data source '{ds_uid}' not found")
670
continue
671
ds = dict(
672
type=datasource.get("type"),
0 commit comments