Merge pull request 'Repair BookStack quoting' (#52) from bookstack-quoting into production
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Reviewed-on: #52
This commit is contained in:
commit
65af33d4fb
@ -24,10 +24,10 @@ bookstack_permissions:
|
|||||||
- key_values:
|
- key_values:
|
||||||
{%- macro condconf(option) %}
|
{%- macro condconf(option) %}
|
||||||
{%- if option in mypillar -%}
|
{%- 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] %}
|
{%- set value = mypillar[option] %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set value = "'" ~ mypillar[option] ~ "'" | quote %}
|
{%- set value = "\"'" ~ mypillar[option] ~ "\"'" %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{{ option | upper }}: {{ value }}
|
{{ option | upper }}: {{ value }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user