Repair PrivateBin config quoting #56

Merged
Georg merged 1 commits from privatebin-quoting into production 2023-04-30 20:42:21 +02:00

View File

@ -24,10 +24,10 @@ privatebin_clean:
- sections:
{%- macro conf(section, options) %}
{%- for option in options.keys() -%}
{%- if mypillar[section][option] is string and mypillar[section][option].startswith('$') or mypillar[section][option] is number %}
{%- if ( mypillar[section][option] is string and mypillar[section][option].startswith('$') ) or mypillar[section][option] is number %}
{%- set value = mypillar[section][option] -%}
{%- else %}
{%- set value = mypillar[section][option] | quote -%}
{%- set value = "\"'" ~ mypillar[section][option] ~ "'\"" -%}
{%- endif %}
{{ option }}: {{ value }}
{%- endfor -%}