fix meta/salt with missing pillar

Change-Id: I43333c76bb3814d2c6b98849df109ef97523dc7e
This commit is contained in:
Tomáš Kukrál 2017-05-11 22:05:59 +02:00
parent eb97a444ed
commit 3d960a15b4
No known key found for this signature in database
GPG key ID: 6C859D7162E37242

View file

@ -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': {}}}} %}