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
b5861179
Commit
b5861179
authored
Oct 04, 2019
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: delete now useless function
parent
fca1e652
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
slapos/runner/utils.py
slapos/runner/utils.py
+0
-12
slapos/runner/views.py
slapos/runner/views.py
+1
-1
No files found.
slapos/runner/utils.py
View file @
b5861179
...
@@ -603,18 +603,6 @@ def listFolder(config, path):
...
@@ -603,18 +603,6 @@ def listFolder(config, path):
return folderList
return folderList
def configNewSR(config, projectpath):
"""Configure a Software Release as current Software Release
Args:
config: slaprunner configuration
projectpath: path of the directory that contains the software realease to configure
Returns:
True if all is done well, otherwise return false.
"""
supplySoftwareRelease(config, projectpath)
def setCurrentSoftwareRelease(config, relative_project_path):
def setCurrentSoftwareRelease(config, relative_project_path):
with open(os.path.join(config['
etc_dir
'], ".project"), '
w
') as f:
with open(os.path.join(config['
etc_dir
'], ".project"), '
w
') as f:
f.write(relative_project_path)
f.write(relative_project_path)
...
...
slapos/runner/views.py
View file @
b5861179
...
@@ -17,7 +17,7 @@ from flask import (Flask, request, redirect, url_for, render_template,
...
@@ -17,7 +17,7 @@ from flask import (Flask, request, redirect, url_for, render_template,
import
slapos
import
slapos
from
slapos.util
import
bytes2str
from
slapos.util
import
bytes2str
import
utils
import
utils
from
slapos.runner.utils
import
(
checkSoftwareFolder
,
c
onfigNewSR
,
c
heckUserCredential
,
from
slapos.runner.utils
import
(
checkSoftwareFolder
,
checkUserCredential
,
createNewUser
,
getBuildAndRunParams
,
createNewUser
,
getBuildAndRunParams
,
getProfilePath
,
getSlapgridResult
,
getProfilePath
,
getSlapgridResult
,
html_escape
,
html_escape
,
...
...
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