From 007973a9d17f498d072313d45266e7fea2bbfa04 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Tue, 8 Nov 2016 13:42:03 +0100 Subject: [PATCH] Fix collectd meta when the service is disabled Change-Id: I78e411200101bc386dbf1a28936745a144649496 --- neutron/meta/collectd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/meta/collectd.yml b/neutron/meta/collectd.yml index 19d4d8d..4fb96c5 100644 --- a/neutron/meta/collectd.yml +++ b/neutron/meta/collectd.yml @@ -1,5 +1,6 @@ {%- if pillar.neutron.server %} {%- from "neutron/map.jinja" import server with context %} +{%- if server.get('enabled', False) %} local_plugin: collectd_check_local_endpoint: endpoint: @@ -15,3 +16,4 @@ remote_plugin: password: {{ server.identity.password }} tenant: {{ server.identity.tenant }} {%- endif %} +{%- endif %}