Skip to content

Commit

Permalink
style(state): avoid complicated comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 10, 2020
1 parent 31d3d9b commit 496f09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cron/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
cron:
pkg: cronie
service: cron
enabled: true
2 changes: 1 addition & 1 deletion cron/service/running.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 496f09b

Please sign in to comment.