Commit e97d60c9 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: const TRUE_VALUES added to correctly interpret buildout

parent 3e9fa4ff
...@@ -26,6 +26,7 @@ import slapos.slap ...@@ -26,6 +26,7 @@ import slapos.slap
logger = logging.getLogger('werkzeug') logger = logging.getLogger('werkzeug')
TRUE_VALUES = (1, '1', True, 'true', 'True')
html_escape_table = { html_escape_table = {
"&": "&", "&": "&",
...@@ -826,7 +827,7 @@ def isSoftwareReleaseReady(config): ...@@ -826,7 +827,7 @@ def isSoftwareReleaseReady(config):
else: else:
if isSoftwareRunning(config): if isSoftwareRunning(config):
return "2" return "2"
elif config['auto_deploy'] in (1, '1', True, 'true'): elif config['auto_deploy'] in TRUE_VALUES:
configNewSR(config, path) configNewSR(config, path)
runSoftwareWithLock(config) runSoftwareWithLock(config)
return "2" return "2"
......
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