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
Nicolas Wavrant
slapos.toolbox
Commits
3def6eef
Commit
3def6eef
authored
Oct 09, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
bf12c51a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/runner/utils.py
slapos/runner/utils.py
+6
-1
No files found.
slapos/runner/utils.py
View file @
3def6eef
...
...
@@ -847,23 +847,28 @@ def isSoftwareReleaseReady(config):
"""Return 1 if the Software Release has
correctly been deployed, 0 if not,
and 2 if it is currently deploying"""
return "1"
logger.warning('
in
isSoftwareReleaseReady
')
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"
logger.warning('
will
run
updateInstanceParameter
')
updateInstanceParameter(config)
logger.warning('
will
run
isSoftwareReleaseCompleted
')
if isSoftwareReleaseCompleted(config):
if auto_run:
runSlapgridUntilSuccess(config, '
instance
')
return "1"
else:
logger.warning('
will
run
IsSoftwareRunning
')
if isSoftwareRunning(config):
return "2"
elif auto_deploy:
logger.warning('
will
run
runSoftwareWithLock
')
runSoftwareWithLock(config)
if auto_run:
logger.warning('
will
run
runSlapgridUntilSuccess
on
instance
')
runSlapgridUntilSuccess(config, '
instance
')
return "2"
else:
...
...
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