Repair BookStack quoting
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Attempt to repair quoting by correcting the if-condition grouping and by
replacing the quote filter with manual quotes.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-04-30 18:37:46 +02:00
parent 8d9af70941
commit 4053be45d2
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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 -%}