Skip to content

Commit

Permalink
multiple monitor: fix deploy error (pingcap#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0127 committed Mar 3, 2020
1 parent e6eea44 commit 160019a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/grafana/templates/data_source.json.j2
Original file line number Diff line number Diff line change
@@ -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 -%}
Expand Down

0 comments on commit 160019a

Please sign in to comment.