diff options
author | Georg Pfuetzenreuter | 2023-04-30 18:37:46 +0200 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-04-30 18:50:25 +0200 |
commit | 4053be45d21d977cc674d7a1ea8c4c44022d716d (patch) | |
tree | 2cf9617cf9891eaefefba266665f0970194f65bf /salt/profile/bookstack | |
parent | 8d9af70941de7c4856a7187b58af10c673c33815 (diff) | |
download | salt-4053be45d21d977cc674d7a1ea8c4c44022d716d.tar.gz salt-4053be45d21d977cc674d7a1ea8c4c44022d716d.tar.bz2 salt-4053be45d21d977cc674d7a1ea8c4c44022d716d.zip |
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 <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/profile/bookstack')
-rw-r--r-- | salt/profile/bookstack/init.sls | 4 |
1 files changed, 2 insertions, 2 deletions
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 -%} |