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
Georgios Dagkakis
slapos
Commits
6d947f6c
Commit
6d947f6c
authored
Nov 04, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor-sr: Fix templates if the instance has no slave.
parent
6a0c1569
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
software/monitor/cgi-httpd.conf.in
software/monitor/cgi-httpd.conf.in
+1
-1
software/monitor/json-test-template.json.in.jinja2
software/monitor/json-test-template.json.in.jinja2
+1
-1
software/monitor/software.cfg
software/monitor/software.cfg
+2
-2
No files found.
software/monitor/cgi-httpd.conf.in
View file @
6d947f6c
...
...
@@ -78,7 +78,7 @@ Alias /{{ monitor_private_hash }} {{ directory.get('private-directory') }}/
</Files>
</Directory>
{% set slave_list = json_module.loads(slave_information.get('slave_instance_list')) -%}
{% set slave_list = json_module.loads(slave_information.get('slave_instance_list'
, '{}'
)) -%}
{% for slave_instance in slave_list -%}
alias /{{ slave_instance.get('slave_reference') }} {{ directory.get('private-directory') }}/network-user-logs/{{ slave_instance.get('slave_reference') }}
...
...
software/monitor/json-test-template.json.in.jinja2
View file @
6d947f6c
{% set slave_list = json_module.loads(slave_information.get('slave_instance_list')) -%}
{% set slave_list = json_module.loads(slave_information.get('slave_instance_list'
, '{}'
)) -%}
{
"id" :
[
...
...
software/monitor/software.cfg
View file @
6d947f6c
...
...
@@ -45,7 +45,7 @@ mode = 0644
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/json-test-template.json.in.jinja2
destination = ${buildout:directory}/json-test-template.json.in.jinja2
md5sum =
f0f7803bfee25b051ea3432119d9e737
md5sum =
ee38d92178576359deb013ca6bd22299
mode = 0644
...
...
@@ -56,7 +56,7 @@ md5sum = 876f18b159fbd9325332d0f42e9172ac
[monitor-httpd-template]
url = ${:_profile_base_location_}/${:filename}
md5sum =
22133e9aa5f52d7818b2fd1fd0415a00
md5sum =
e89b66a90409bb8e9099aa197803d337
[network-bench-cfg]
recipe = slapos.recipe.template
...
...
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