Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.toolbox
Commits
50948d5b
Commit
50948d5b
authored
Sep 09, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: if no "slapos-software" is defined in parameters, the auto build&run feature shouldn't work
parent
3005b789
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
slapos/runner/utils.py
slapos/runner/utils.py
+4
-2
No files found.
slapos/runner/utils.py
View file @
50948d5b
...
...
@@ -840,8 +840,10 @@ def isSoftwareReleaseReady(config):
"""Return 1 if the Software Release has
correctly been deployed, 0 if not,
and 2 if it is currently deploying"""
auto_deploy = config['
auto_deploy
'] in TRUE_VALUES
auto_run = config['
autorun
'] in TRUE_VALUES
slapos_software = (False if config.get('
slapos
-
software
', None) is None else True)
# 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
project = os.path.join(config['
etc_dir
'], '
.
project
')
if not ( os.path.exists(project) and (auto_run or auto_deploy) ):
return "0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment