Skip to content

Commit 8465eb4

Browse files
committed
fix(init.sls): fix salt-lint errors
```bash Examining apache/init.sls of type state [206] Jinja variables should have spaces before and after: {{ var_name }} apache/init.sls:15 service.{{apache.service_state}}: [206] Jinja variables should have spaces before and after: {{ var_name }} apache/init.sls:30 - cmd: {{apache.custom_reload_command|default('apachectl graceful')}} [206] Jinja variables should have spaces before and after: {{ var_name }} apache/init.sls:41 - cmd: {{apache.custom_reload_command|default('apachectl graceful')}} ```
1 parent a146c59 commit 8465eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apache/init.sls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ apache:
1212
- system: True
1313
{# By default run apache service states (unless pillar is false) #}
1414
{% if salt['pillar.get']('apache:manage_service_states', True) %}
15-
service.{{apache.service_state}}:
15+
service.{{ apache.service_state }}:
1616
- name: {{ apache.service }}
1717
{% if apache.service_state in [ 'running', 'dead' ] %}
1818
- enable: True
@@ -27,7 +27,7 @@ apache-reload:
2727
- m_name: {{ apache.service }}
2828
{% else %}
2929
- name: cmd.run
30-
- cmd: {{apache.custom_reload_command|default('apachectl graceful')}}
30+
- cmd: {{ apache.custom_reload_command|default('apachectl graceful') }}
3131
- python_shell: True
3232
{% endif %}
3333
@@ -38,7 +38,7 @@ apache-restart:
3838
- m_name: {{ apache.service }}
3939
{% else %}
4040
- name: cmd.run
41-
- cmd: {{apache.custom_reload_command|default('apachectl graceful')}}
41+
- cmd: {{ apache.custom_reload_command|default('apachectl graceful') }}
4242
- python_shell: True
4343
{% endif %}
4444

0 commit comments

Comments
 (0)