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:
commit
7e07c93f36
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue