From 4053be45d21d977cc674d7a1ea8c4c44022d716d Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 30 Apr 2023 18:37:46 +0200 Subject: Repair BookStack quoting Attempt to repair quoting by correcting the if-condition grouping and by replacing the quote filter with manual quotes. Signed-off-by: Georg Pfuetzenreuter --- salt/profile/bookstack/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'salt') diff --git a/salt/profile/bookstack/init.sls b/salt/profile/bookstack/init.sls index 05f07b6..bc63a03 100644 --- a/salt/profile/bookstack/init.sls +++ b/salt/profile/bookstack/init.sls @@ -24,10 +24,10 @@ bookstack_permissions: - key_values: {%- macro condconf(option) %} {%- if option in mypillar -%} - {%- if mypillar[option] is string and mypillar[option].startswith('$') or mypillar[option] is number %} + {%- if ( mypillar[option] is string and mypillar[option].startswith('$') ) or mypillar[option] is number %} {%- set value = mypillar[option] %} {%- else %} - {%- set value = "'" ~ mypillar[option] ~ "'" | quote %} + {%- set value = "\"'" ~ mypillar[option] ~ "\"'" %} {%- endif %} {{ option | upper }}: {{ value }} {%- endif -%} -- cgit v1.2.3