From 55d11f82934bcfd8d2e6057a70d49357ddfdb666 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Thu, 17 Oct 2019 07:51:37 +0100 Subject: [PATCH] fix(modules.sls): fix `salt-lint` errors ```bash Examining apache/modules.sls of type state [201] Trailing whitespace apache/modules.sls:49 [201] Trailing whitespace apache/modules.sls:84 ``` --- apache/modules.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/modules.sls b/apache/modules.sls index 2b8d64f..8f49740 100644 --- a/apache/modules.sls +++ b/apache/modules.sls @@ -46,7 +46,7 @@ a2dismod -f {{ module }}: include: - apache - + {% for module in salt['pillar.get']('apache:modules:enabled', []) %} find /etc/httpd/ -name '*.conf' -type f -exec sed -i -e 's/\(^#\)\(\s*LoadModule.{{ module }}_module\)/\2/g' {} \;: cmd.run: @@ -81,7 +81,7 @@ find /etc/httpd/ -name '*.conf' -type f -exec sed -i -e 's/\(^\s*LoadModule.{{ m include: - apache - + {% for module in salt['pillar.get']('apache:modules:enabled', []) %} a2enmod {{ module }}: cmd.run: