From d0f3740c9eeafa9958408bde6d7ecbe9e408f2bf Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Fri, 8 Apr 2022 00:23:30 +0200 Subject: [PATCH] Update 00-mpm.conf.jinja Change mpm.conf template for RedHat family systems. The code currently written will always expand to true as a pillar.get() call will return None in case the pillar is non existing, which is also considered defined. Fix this. --- apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja b/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja index dcad4ca..41189e2 100644 --- a/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja +++ b/apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja @@ -4,7 +4,7 @@ {% set mpm_module = 'mpm_prefork' -%} {% set mpm_param = salt['pillar.get']('apache:mod_mpm_prefork', {}) -%} -{% if pillar.get('apache:mod_mpm_worker') is defined -%} +{% if pillar.get('apache:mod_mpm_worker', None) -%} {% set mpm_module = 'mpm_worker' -%} {% set mpm_param = salt['pillar.get']('apache:mod_mpm_worker', {}) -%} {% else -%}