From 942b71815ed6ae2a59f93140061bc515a4394c82 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 30 Apr 2023 20:38:43 +0200 Subject: Repair PrivateBin config quoting Ensure strings are quoted correctly. Signed-off-by: Georg Pfuetzenreuter --- salt/profile/privatebin/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'salt/profile/privatebin') diff --git a/salt/profile/privatebin/init.sls b/salt/profile/privatebin/init.sls index 7b9c036..80f769d 100644 --- a/salt/profile/privatebin/init.sls +++ b/salt/profile/privatebin/init.sls @@ -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 -%} -- cgit v1.2.3