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
Hardik Juneja
slapos.toolbox
Commits
f26d41d7
Commit
f26d41d7
authored
Oct 16, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: isSRRelease now works if no software had been runned before
parent
4e2f9bc1
Changes
1
Hide 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 @
f26d41d7
...
@@ -814,7 +814,11 @@ def isSoftwareReleaseReady(config):
...
@@ -814,7 +814,11 @@ def isSoftwareReleaseReady(config):
project = os.path.join(config['
etc_dir
'], '
.
project
')
project = os.path.join(config['
etc_dir
'], '
.
project
')
if not os.path.exists(project):
if not os.path.exists(project):
return "0";
return "0";
software_name = open(project, 'r').readline().split('
/
')[-2]
path = open(project, 'r').readline().strip()
software_name = path
if software_name[-1] == '
/
':
software_name = software_name[:-1]
software_name = software_name.split('
/
')[-1]
if os.path.exists(os.path.join(config['
runner_workdir
'],
if os.path.exists(os.path.join(config['
runner_workdir
'],
'
softwareLink
', software_name, '
.
completed
')):
'
softwareLink
', software_name, '
.
completed
')):
return "1"
return "1"
...
@@ -822,6 +826,7 @@ def isSoftwareReleaseReady(config):
...
@@ -822,6 +826,7 @@ def isSoftwareReleaseReady(config):
if isSoftwareRunning(config):
if isSoftwareRunning(config):
return "2"
return "2"
elif config['
auto_deploy
'] in (1, '
1
', True, '
true
'):
elif config['
auto_deploy
'] in (1, '
1
', True, '
true
'):
configNewSR(config, path)
runSoftwareWithLock(config)
runSoftwareWithLock(config)
return "2"
return "2"
else:
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