Commit af6ebe5f authored by Daniele Venzano's avatar Daniele Venzano

Fix disable autorestart parameter

parent 3f0267a6
......@@ -89,6 +89,9 @@ def _spawn_service(execution: Execution, service: Service, env_subst_dict: dict)
copts.labels['zoe.monitor'] = 'false'
if 'disable_autorestart' in execution.description and execution.description['disable_autorestart']:
log.debug("Autorestart disabled for service {}".format(
copts.restart = False
copts.restart = not service.description['monitor'] # Monitor containers should not restart
_gen_environment(service, env_subst_dict, copts)
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