Fix error with rendering Prometheus recording rules grains.
Fixes PROD-35073
Change-Id: I50b450d99bdac91da27366eac80dbaabd9aeecd2
diff --git a/telegraf/meta/prometheus.yml b/telegraf/meta/prometheus.yml
index c4a1131..08c139d 100644
--- a/telegraf/meta/prometheus.yml
+++ b/telegraf/meta/prometheus.yml
@@ -153,7 +153,7 @@
{%- endif %}
{%- endif %}
{%- if pillar.neutron is defined %}
- {%- if (pillar.neutron.get('gateway', {}).get('enabled', False) == True and 'ovs' in pillar.neutron.get('gateway', {}).get('backend', {}).get('mechanism', {}).keys()) %}
+ {%- if (pillar.neutron.get('gateway', {}).get('enabled', False) == True and 'ovs' in pillar.neutron.get('gateway', {}).get('backend', {}).get('mechanism', {}).keys())
or (pillar.neutron.get('compute', {}).get('enabled', False) == True and 'ovs' in pillar.neutron.get('compute', {}).get('backend', {}).get('mechanism', {}).keys() and pillar.neutron.get('compute', {}).get('dhcp_agent_enabled', False) == True) %}
recording:
instance_id:instance_arping_success: