Commit 62822166 authored by Nicolas Wavrant's avatar Nicolas Wavrant

Revert "runner: if no "slapos-software" is defined in parameters, the auto...

Revert "runner: if no "slapos-software" is defined in parameters, the auto build&run feature shouldn't work"

The current behavior should stay until a correct way of restarting processes in the webrunner (ie: watchdog within slapproxy) is implemented

This reverts commit 50948d5b.
parent 0f3fd592
......@@ -849,10 +849,8 @@ def isSoftwareReleaseReady(config):
"""Return 1 if the Software Release has
correctly been deployed, 0 if not,
and 2 if it is currently deploying"""
slapos_software = config.get('slapos-software', None) is not None
# auto_deploy and auto_run are True only if slapos_software has been declared
auto_deploy = (config['auto_deploy'] in TRUE_VALUES) and slapos_software
auto_run = (config['autorun'] in TRUE_VALUES) and slapos_software
auto_deploy = config['auto_deploy'] in TRUE_VALUES
auto_run = config['autorun'] in TRUE_VALUES
project = os.path.join(config['etc_dir'], '.project')
if not ( os.path.exists(project) and (auto_run or auto_deploy) ):
return "0"
......
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