Commit 71d01d4d authored by Łukasz Nowak's avatar Łukasz Nowak

stack/resilient: Use dumps to transmit parameters

parent f809c558
Pipeline #17540 running with stage
......@@ -30,7 +30,7 @@ md5sum = b240dc76a663190304d8bcb9cabcda8f
[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