1
0
Fork 0

Merge pull request #14 from thouveng/use-get-with-enabled

Use get function to check if a "role" is enabled
This commit is contained in:
pasquier-s 2016-11-28 15:02:18 +01:00 committed by GitHub
commit 7e07c93f36
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{%- from "grafana/map.jinja" import collector with context %}
{%- if collector.enabled %}
{%- if collector.get('enabled', False) %}
grafana_grains_dir:
file.directory:

View File

@ -1,5 +1,5 @@
{%- from "grafana/map.jinja" import server with context %}
{%- if server.enabled %}
{%- if server.get('enabled', False) %}
grafana_packages:
pkg.installed: