Commit c8ab1273 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slarunner: new parameter auto_deploy

can auto-run software and instance if set to 1 (=default)
parent 8480dbe6
...@@ -819,7 +819,11 @@ def cloneDefaultGit(config): ...@@ -819,7 +819,11 @@ def cloneDefaultGit(config):
def setupDefaultSR(config): def setupDefaultSR(config):
"""If a default_sr is in the parameters, """If a default_sr is in the parameters,
and no SR is deployed yet, setup it""" and no SR is deployed yet, setup it
also run SR and Instance if required"""
project = os.path.join(config['etc_dir'], '.project') project = os.path.join(config['etc_dir'], '.project')
if not os.path.exists(project) and config['default_sr'] != '': if not os.path.exists(project) and config['default_sr'] != '':
configNewSR(config, config['default_sr']) configNewSR(config, config['default_sr'])
if config['auto_deploy']:
runSoftwareWithLock(config)
runInstanceWithLock(config)
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