Merge pull request #14 from n-rodriguez/fix/coding_style

style(state): avoid complicated comparison
This commit is contained in:
Nicolas Rodriguez
2020-09-10 04:21:36 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -4,3 +4,4 @@
cron:
pkg: cronie
service: cron
enabled: true
+1 -1
View File
@@ -6,7 +6,7 @@
{%- from tplroot ~ "/map.jinja" import cron with context %}
cron.service:
{%- if 'enabled' not in cron or ( 'enabled' in cron and cron.enabled ) %}
{%- if cron.enabled %}
service.running:
- name: {{ cron.service }}
- enable: true