Commit b5861179 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: delete now useless function

parent fca1e652
......@@ -603,18 +603,6 @@ def listFolder(config, path):
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):
with open(os.path.join(config['etc_dir'], ".project"), 'w') as f:
f.write(relative_project_path)
......
......@@ -17,7 +17,7 @@ from flask import (Flask, request, redirect, url_for, render_template,
import slapos
from slapos.util import bytes2str
import utils
from slapos.runner.utils import (checkSoftwareFolder, configNewSR, checkUserCredential,
from slapos.runner.utils import (checkSoftwareFolder, checkUserCredential,
createNewUser, getBuildAndRunParams,
getProfilePath, getSlapgridResult,
html_escape,
......
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