Commit 84fc84dd authored by Łukasz Nowak's avatar Łukasz Nowak

resilient: Do not fail for non-string values

This fixes commit:
"resilient: fix parse error bug when parameters are multilines"
parent b8acc2e5
......@@ -73,7 +73,7 @@ mode = 0644
[template-replicated]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/template-replicated.cfg.in
md5sum = 4718b969bc9a661f74883217bdf46c7d
md5sum = 75686abd9cb8d6e1f4e15931e280fa56
mode = 0644
destination = ${buildout:directory}/template-replicated.cfg.in
......
......@@ -42,7 +42,11 @@ 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 slapparameter_dict.items() %}
{% if parameter_value is string %}
config-{{parameter_name}} = {{ parameter_value.split('\n') | join('\n ') }}
{% else %}
config-{{parameter_name}} = {{ parameter_value }}
{% endif %}
{% endfor %}
{% endif %}
{% for key, value in monitor_dict.iteritems() -%}
......
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