Commit 897d2954 authored by Łukasz Nowak's avatar Łukasz Nowak

XXX - checkpoint

parent 392c7c9e
......@@ -26,7 +26,7 @@ md5sum = d93042d602fb8d57e2bcc7691ca4807d
[profile-master]
filename = instance-master.cfg.in
md5sum = 8c7f1bf5943e027cc6499361cad05c3b
md5sum = 8f037811f4f25950ccde5dd5e5478879
[profile-slave-list]
filename = instance-slave-list.cfg.in
......@@ -34,7 +34,7 @@ md5sum = 4618b99e2b157f3bf60eece6b65936d2
[profile-master-publish-slave-information]
filename = instance-master-publish-slave-information.cfg.in
md5sum = cba4d995962f7fbeae3f61c9372c4181
md5sum = 996a565cf45316450da8dfcab40916d4
[template-frontend-haproxy-configuration]
_update_hash_filename_ = templates/frontend-haproxy.cfg.in
......
......@@ -27,6 +27,7 @@
{% endfor %}
{% endfor %}
# XXX: {{ slave_information_dict }}
{% for slave_reference, rejected_info_list in rejected_slave_information['rejected-slave-dict'].items() %}
{% if slave_reference not in slave_information_dict %}
{% do slave_information_dict.__setitem__(slave_reference, {}) %}
......
......@@ -558,13 +558,13 @@ warning-slave-dict = {{ dumps(warning_slave_dict) }}
{% endfor %}
[active-slave-instance]
{% set active_slave_instance_list = [] %}
{% for slave_instance in instance_parameter_dict['slave-instance-list'] %}
{# Provide a list of slave titles send by master, in order to filter out already destroyed slaves #}
{%- set active_slave_instance_list = [] %}
{%- for slave_instance in instance_parameter_dict['slave-instance-list'] %}
{#- Provide a list of slave titles send by master, in order to filter out already destroyed slaves #}
{# Note: This functionality is not yet covered by tests, please modify with care #}
{% do active_slave_instance_list.append(slave_instance['slave_reference']) %}
{% endfor %}
{# sort_keys are important in order to avoid shuffling parameters on each run #}
{%- do active_slave_instance_list.append(slave_instance['slave_reference']) %}
{%- endfor %}
{#- sort_keys are important in order to avoid shuffling parameters on each run #}
active-slave-instance-list = {{ json_module.dumps(active_slave_instance_list, sort_keys=True) }}
[frontend-information]
......
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