Skip to content

Commit 0a41b19

Browse files
committed
fix(vhosts/redirect.tmpl): fix salt-lint errors
```bash Examining apache/vhosts/redirect.tmpl of type state [201] Trailing whitespace apache/vhosts/redirect.tmpl:23 [206] Jinja variables should have spaces before and after: {{ var_name }} apache/vhosts/redirect.tmpl:28 <VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}> [201] Trailing whitespace apache/vhosts/redirect.tmpl:47 ```
1 parent e7c9fbb commit 0a41b19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apache/vhosts/redirect.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)),
2121
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
2222
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),
23-
23+
2424
'RedirectSource': site.get('RedirectSource', '/'),
2525
'RedirectTarget': site.get('RedirectTarget', 'https://{0}/'.format(sitename)),
2626
} %}
2727

28-
<VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}>
28+
<VirtualHost {%- for intf in vals.interfaces %} {{ intf }}:{{ vals.port }}{% endfor -%}>
2929
ServerName {{ vals.ServerName }}
3030
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}
3131

@@ -44,7 +44,7 @@
4444
{% else %}
4545
Redirect {{ vals.RedirectSource }} {{ vals.RedirectTarget }}
4646
{% endif %}
47-
47+
4848
{% if site.get('Formula_Append') %}
4949
{{ site.Formula_Append|indent(4) }}
5050
{% endif %}

0 commit comments

Comments
 (0)