Skip to content

Commit e7c9fbb

Browse files
committed
fix(vhosts/proxy.tmpl): fix salt-lint errors
```bash Examining apache/vhosts/proxy.tmpl of type state [206] Jinja variables should have spaces before and after: {{ var_name }} apache/vhosts/proxy.tmpl:38 <VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}> [206] Jinja variables should have spaces before and after: {{ var_name }} apache/vhosts/proxy.tmpl:53 {% if site.get('SSLCertificateChainFile') %}SSLCertificateChainFile {{ site.SSLCertificateChainFile}}{% endif %} [206] Jinja variables should have spaces before and after: {{ var_name }} apache/vhosts/proxy.tmpl:85 {%- if lvals.get('Require') != False %}Require {{lvals.Require}}{% endif %} [206] Jinja variables should have spaces before and after: {{ var_name }} apache/vhosts/proxy.tmpl:102 {%- if lmvals.get('Require') != False %}Require {{lmvals.Require}}{% endif %} ```
1 parent 146dc67 commit e7c9fbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apache/vhosts/proxy.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'Require': 'all granted',
3636
},
3737
} %}
38-
<VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}>
38+
<VirtualHost {%- for intf in vals.interfaces %} {{ intf }}:{{ vals.port }}{% endfor -%}>
3939
ServerName {{ vals.ServerName }}
4040
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}
4141
{% if site.get('ServerAdmin') != False %}ServerAdmin {{ vals.ServerAdmin }}{% endif %}
@@ -50,7 +50,7 @@
5050
{% if site.get('SSLCertificateFile') %}SSLEngine on
5151
SSLCertificateFile {{ site.SSLCertificateFile }}
5252
{% if site.get('SSLCertificateKeyFile') %}SSLCertificateKeyFile {{ site.SSLCertificateKeyFile }}{% endif %}
53-
{% if site.get('SSLCertificateChainFile') %}SSLCertificateChainFile {{ site.SSLCertificateChainFile}}{% endif %}
53+
{% if site.get('SSLCertificateChainFile') %}SSLCertificateChainFile {{ site.SSLCertificateChainFile }}{% endif %}
5454
{% endif %}
5555
{% if site.get('Rewrite') %}RewriteEngine on
5656
{{ site.Rewrite }}
@@ -82,7 +82,7 @@
8282
} %}
8383
<Location "{{ path }}">
8484
{% if apache.version == '2.4' %}
85-
{%- if lvals.get('Require') != False %}Require {{lvals.Require}}{% endif %}
85+
{%- if lvals.get('Require') != False %}Require {{ lvals.Require }}{% endif %}
8686
{% else %}
8787
{%- if lvals.get('Order') != False %}Order {{ lvals.Order }}{% endif %}
8888
{%- if lvals.get('Allow') != False %}Allow {{ lvals.Allow }}{% endif %}
@@ -99,7 +99,7 @@
9999
} %}
100100
<LocationMatch "{{ regpath }}">
101101
{% if apache.version == '2.4' %}
102-
{%- if lmvals.get('Require') != False %}Require {{lmvals.Require}}{% endif %}
102+
{%- if lmvals.get('Require') != False %}Require {{ lmvals.Require }}{% endif %}
103103
{% else %}
104104
{%- if lmvals.get('Order') != False %}Order {{ lmvals.Order }}{% endif %}
105105
{%- if lmvals.get('Allow') != False %}Allow {{ lmvals.Allow }}{% endif %}

0 commit comments

Comments
 (0)