Fix collectd meta when the service is disabled

Change-Id: Ia830f777eaf00046aa07ee11cdec3430b1bd90fc
This commit is contained in:
Simon Pasquier 2016-11-08 13:45:53 +01:00
parent 9289130f4c
commit 3ebb5dcb74
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{%- from "keystone/map.jinja" import server with context %}
{%- if server.get('enabled', False) %}
local_plugin:
collectd_check_local_endpoint:
endpoint:
@ -24,3 +25,4 @@ remote_plugin:
username: {{ server.admin_name }}
password: {{ server.admin_password }}
tenant: {{ server.admin_tenant }}
{%- endif %}