1
0
Fork 0
mirror of synced 2024-11-26 02:35:35 -05:00

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 %} {%- from "grafana/map.jinja" import collector with context %}
{%- if collector.enabled %} {%- if collector.get('enabled', False) %}
grafana_grains_dir: grafana_grains_dir:
file.directory: file.directory:

View file

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