From 1fe19d7339eeedca1f79205c78c449b93d01dc41 Mon Sep 17 00:00:00 2001 From: liubo Date: Tue, 3 Mar 2020 16:30:13 +0800 Subject: [PATCH] multiple monitor: fix deploy error (#1190) (#1192) --- roles/grafana/templates/data_source.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/grafana/templates/data_source.json.j2 b/roles/grafana/templates/data_source.json.j2 index 5c800eeb7..82fd0bd7a 100644 --- a/roles/grafana/templates/data_source.json.j2 +++ b/roles/grafana/templates/data_source.json.j2 @@ -1,6 +1,6 @@ {% if groups.monitoring_servers | length == groups.grafana_servers | length -%} {% set index = [] -%} - {% for host in groups.monitoring_servers -%} + {% for host in groups.grafana_servers -%} {% if inventory_hostname == hostvars[host].inventory_hostname -%} {% set _ = index.append(loop.index0) -%} {% endif -%}