Commit 8c0914a2 authored by Vincent Pelletier's avatar Vincent Pelletier

Disable timerserver when timerserver-interval is 0.

Also, make it optional.
parent b17b2f15
...@@ -230,7 +230,7 @@ mode = 640 ...@@ -230,7 +230,7 @@ mode = 640
[template-zope-conf] [template-zope-conf]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/zope.conf.in url = ${:_profile_base_location_}/zope.conf.in
md5sum = 599e004c18fd3461aa846ae75bd112f2 md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
mode = 640 mode = 640
[template] [template]
......
...@@ -43,10 +43,11 @@ products {{ instance_products }} ...@@ -43,10 +43,11 @@ products {{ instance_products }}
</product-config> </product-config>
{% endif -%} {% endif -%}
{% if 'timerserver-interval' in parameter_dict -%} {% set timerserver_interval = parameter_dict.get('timerserver-interval', '0') | int -%}
{% if timerserver_interval -%}
%import timerserver %import timerserver
<timer-server> <timer-server>
interval {{ parameter_dict['timerserver-interval'] }} interval {{ timerserver_interval }}
</timer-server> </timer-server>
{% endif -%} {% endif -%}
......
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