Commit 4a77925b authored by Łukasz Nowak's avatar Łukasz Nowak

stack/resilient: Use dumps to transmit parameters

parent d4e8d9e1
Pipeline #14688 failed with stage
in 0 seconds
......@@ -30,7 +30,7 @@ md5sum = 382d9b57faac92da3c723760f2210c13
[template-replicated]
filename = template-replicated.cfg.in
md5sum = 0917aaacb752526e6f114839a3e6e1de
md5sum = 41aee09e9f9abbae59b0442e1e76387f
[template-parts]
filename = template-parts.cfg.in
......
......@@ -42,11 +42,7 @@ config-name = {{namebase}}0
# Bubble up all the instance parameters to the requested export instance.
{% if slapparameter_dict is defined %}
{% for parameter_name, parameter_value in six.iteritems(slapparameter_dict) %}
{% if parameter_value is string %}
config-{{parameter_name}} = {{ parameter_value.split('\n') | join('\n ') }}
{% else %}
config-{{parameter_name}} = {{ parameter_value }}
{% endif %}
config-{{ parameter_name }} = {{ dumps(parameter_value) }}
{% endfor %}
{% endif %}
{% for key, value in six.iteritems(monitor_dict) -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment