From 8465eb47e0970ea5811ac78c05af0aa307f34b31 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Thu, 17 Oct 2019 07:47:49 +0100 Subject: [PATCH] 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')}} ``` --- apache/init.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apache/init.sls b/apache/init.sls index bbe1d7d..744d6f2 100644 --- a/apache/init.sls +++ b/apache/init.sls @@ -12,7 +12,7 @@ apache: - system: True {# By default run apache service states (unless pillar is false) #} {% if salt['pillar.get']('apache:manage_service_states', True) %} - service.{{apache.service_state}}: + service.{{ apache.service_state }}: - name: {{ apache.service }} {% if apache.service_state in [ 'running', 'dead' ] %} - enable: True @@ -27,7 +27,7 @@ apache-reload: - m_name: {{ apache.service }} {% else %} - name: cmd.run - - cmd: {{apache.custom_reload_command|default('apachectl graceful')}} + - cmd: {{ apache.custom_reload_command|default('apachectl graceful') }} - python_shell: True {% endif %} @@ -38,7 +38,7 @@ apache-restart: - m_name: {{ apache.service }} {% else %} - name: cmd.run - - cmd: {{apache.custom_reload_command|default('apachectl graceful')}} + - cmd: {{ apache.custom_reload_command|default('apachectl graceful') }} - python_shell: True {% endif %}