ansible/monitoring-agent: use `elif` instead of `else` in Jinja2 template
authorConnor Sheehan <sheehan@mozilla.com>
Tue, 23 Apr 2019 16:15:28 -0400
changeset 6963 bdc17e270d0b1ae7e2919b90ef81f101f38fd655
parent 6962 a9512159265cd90abb077c1a49cc7331f80c3f82
child 6964 210ad037e03856a502d3fc6fb1ba6c6ab04f3ad2
push id3462
push usercosheehan@mozilla.com
push dateTue, 23 Apr 2019 20:22:41 +0000
treeherderversion-control-tools@bdc17e270d0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
ansible/monitoring-agent: use `elif` instead of `else` in Jinja2 template Also use double quotes to indicate a string.
ansible/roles/monitoring-agent/templates/telegraf.conf.j2
--- a/ansible/roles/monitoring-agent/templates/telegraf.conf.j2
+++ b/ansible/roles/monitoring-agent/templates/telegraf.conf.j2
@@ -31,11 +31,11 @@ mount_points = [
 [[inputs.system]]
 
 # Send metrics to InfluxDB
 [[outputs.influxdb]]
 urls = ["http://10.191.5.155:8086"]
 
 {% if hosttype == "hgweb" %}
 {% include 'hgweb.conf.j2' %}
-{% else if hosttype == 'hgssh' %}
+{% elif hosttype == "hgssh" %}
 {% include 'hgssh.conf.j2' %}
 {% endif %}