Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
0ccc721e
Commit
0ccc721e
authored
4 months ago
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX - checkpoint
parent
b78bcfd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
software/rapid-cdn/instance-master-publish-slave-information.cfg.in
...apid-cdn/instance-master-publish-slave-information.cfg.in
+1
-0
software/rapid-cdn/instance-master.cfg.in
software/rapid-cdn/instance-master.cfg.in
+6
-6
No files found.
software/rapid-cdn/instance-master-publish-slave-information.cfg.in
View file @
0ccc721e
...
...
@@ -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, {}) %}
...
...
This diff is collapsed.
Click to expand it.
software/rapid-cdn/instance-master.cfg.in
View file @
0ccc721e
...
...
@@ -559,13 +559,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]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment