From 3d960a15b4b13539c43b8d6a96b98cf594267158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kukr=C3=A1l?= Date: Thu, 11 May 2017 22:05:59 +0200 Subject: [PATCH] fix meta/salt with missing pillar Change-Id: I43333c76bb3814d2c6b98849df109ef97523dc7e --- prometheus/meta/salt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/meta/salt.yml b/prometheus/meta/salt.yml index 9343f83..a886376 100644 --- a/prometheus/meta/salt.yml +++ b/prometheus/meta/salt.yml @@ -1,5 +1,5 @@ grain: - {%- if pillar.prometheus is defined and pillar.prometheus.collector is defined %} + {%- if pillar.get('prometheus', {}).get('collector') %} {%- from "prometheus/map.jinja" import server as prometheus_server with context %} prometheus: {%- set service_grains = {'prometheus': {'server': {'alert': {}, 'recording': {}, 'target': {}}}} %}