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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
slapos
Commits
71d01d4d
Commit
71d01d4d
authored
Apr 01, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/resilient: Use dumps to transmit parameters
parent
f809c558
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+1
-1
stack/resilient/template-replicated.cfg.in
stack/resilient/template-replicated.cfg.in
+1
-5
No files found.
stack/resilient/buildout.hash.cfg
View file @
71d01d4d
...
@@ -30,7 +30,7 @@ md5sum = b240dc76a663190304d8bcb9cabcda8f
...
@@ -30,7 +30,7 @@ md5sum = b240dc76a663190304d8bcb9cabcda8f
[template-replicated]
[template-replicated]
filename = template-replicated.cfg.in
filename = template-replicated.cfg.in
md5sum =
0917aaacb752526e6f114839a3e6e1de
md5sum =
41aee09e9f9abbae59b0442e1e76387f
[template-parts]
[template-parts]
filename = template-parts.cfg.in
filename = template-parts.cfg.in
...
...
stack/resilient/template-replicated.cfg.in
View file @
71d01d4d
...
@@ -42,11 +42,7 @@ config-name = {{namebase}}0
...
@@ -42,11 +42,7 @@ config-name = {{namebase}}0
# Bubble up all the instance parameters to the requested export instance.
# Bubble up all the instance parameters to the requested export instance.
{% if slapparameter_dict is defined %}
{% if slapparameter_dict is defined %}
{% for parameter_name, parameter_value in six.iteritems(slapparameter_dict) %}
{% for parameter_name, parameter_value in six.iteritems(slapparameter_dict) %}
{% if parameter_value is string %}
config-{{ parameter_name }} = {{ dumps(parameter_value) }}
config-{{parameter_name}} = {{ parameter_value.split('\n') | join('\n ') }}
{% else %}
config-{{parameter_name}} = {{ parameter_value }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% for key, value in six.iteritems(monitor_dict) -%}
{% for key, value in six.iteritems(monitor_dict) -%}
...
...
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