Merge pull request 'Repair PrivateBin config quoting' (#56) from privatebin-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: #56
This commit is contained in:
commit
5f1793547b
@ -24,10 +24,10 @@ privatebin_clean:
|
|||||||
- sections:
|
- sections:
|
||||||
{%- macro conf(section, options) %}
|
{%- macro conf(section, options) %}
|
||||||
{%- for option in options.keys() -%}
|
{%- 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] -%}
|
{%- set value = mypillar[section][option] -%}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set value = mypillar[section][option] | quote -%}
|
{%- set value = "\"'" ~ mypillar[section][option] ~ "'\"" -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{{ option }}: {{ value }}
|
{{ option }}: {{ value }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user