Compare commits

..

1 Commits

Author SHA1 Message Date
3b4e4bdbc1
Repair BookStack quoting
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Quoting filter did not work together with the manual quotes.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-04-30 18:37:46 +02:00

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