From 0a41b193dab4813939b41c854527a8545a0d5430 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Thu, 17 Oct 2019 08:13:35 +0100 Subject: [PATCH] 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 [201] Trailing whitespace apache/vhosts/redirect.tmpl:47 ``` --- apache/vhosts/redirect.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apache/vhosts/redirect.tmpl b/apache/vhosts/redirect.tmpl index 3a3759c..0811ac3 100644 --- a/apache/vhosts/redirect.tmpl +++ b/apache/vhosts/redirect.tmpl @@ -20,12 +20,12 @@ 'ErrorLog': site.get('ErrorLog', '{0}/{1}-error.log'.format(map.logdir, sitename)), 'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'), 'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)), - + 'RedirectSource': site.get('RedirectSource', '/'), 'RedirectTarget': site.get('RedirectTarget', 'https://{0}/'.format(sitename)), } %} - + ServerName {{ vals.ServerName }} {% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %} @@ -44,7 +44,7 @@ {% else %} Redirect {{ vals.RedirectSource }} {{ vals.RedirectTarget }} {% endif %} - + {% if site.get('Formula_Append') %} {{ site.Formula_Append|indent(4) }} {% endif %}