From 0772d8a8d04670e783a12174eee897a68c511224 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 9 Oct 2019 14:42:26 +0100 Subject: [PATCH] fix(map.jinja): fix `salt-lint` errors ```bash Examining nginx/map.jinja of type state [202] Jinja statement should have spaces before and after: {% statement %} nginx/map.jinja:175 })%} [202] Jinja statement should have spaces before and after: {% statement %} nginx/map.jinja:181 })%} [202] Jinja statement should have spaces before and after: {% statement %} nginx/map.jinja:188 })%} [202] Jinja statement should have spaces before and after: {% statement %} nginx/map.jinja:192 })%} [202] Jinja statement should have spaces before and after: {% statement %} nginx/map.jinja:195 })%} ``` --- nginx/map.jinja | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nginx/map.jinja b/nginx/map.jinja index 3d9f84b..1c0adae 100644 --- a/nginx/map.jinja +++ b/nginx/map.jinja @@ -172,26 +172,26 @@ {% if 'user' not in nginx.server.config %} {% do nginx.server.config.update({ 'user': nginx.lookup.webuser, -})%} +}) %} {% endif %} {% if 'pid' not in nginx.server.config and 'pid_file' in nginx.lookup %} {% do nginx.server.config.update({ 'pid': nginx.lookup.pid_file, -})%} +}) %} {% endif %} {% if salt['grains.get']('os_family') == 'RedHat' %} {% do nginx.passenger.update({ 'passenger_root': '/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_instance_registry_dir': '/var/run/passenger-instreg', -})%} +}) %} {% if 'osfinger' in grains and salt['grains.get']('osfinger') == 'CentOS-6' %} {% do nginx.server.config.update({ 'pid': '/var/run/nginx.pid', - })%} + }) %} {% do nginx.passenger.update({ 'passenger_root': '/usr/lib/ruby/1.8/phusion_passenger/locations.ini', - })%} + }) %} {% endif %} {% endif %}