Fix collectd meta when the service is disabled

Change-Id: I78e411200101bc386dbf1a28936745a144649496
This commit is contained in:
Simon Pasquier 2016-11-08 13:42:03 +01:00
parent d8525ffd80
commit 007973a9d1
1 changed files with 2 additions and 0 deletions

View File

@ -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 %}