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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
97ac9598
Commit
97ac9598
authored
Nov 29, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: protection in isSoftwareReleaseReady from malformed project names
parent
2032e7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
slapos/runner/utils.py
slapos/runner/utils.py
+3
-2
No files found.
slapos/runner/utils.py
View file @
97ac9598
...
@@ -287,8 +287,9 @@ def config_SR_folder(config):
...
@@ -287,8 +287,9 @@ def config_SR_folder(config):
if
not
folder_list
:
if
not
folder_list
:
return
return
current_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
current_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
projects
=
current_project
.
split
(
'/'
)
if
current_project
[
-
1
]
==
'/'
:
name
=
projects
[
-
2
]
current_project
=
current_project
[:
-
1
]
name
=
current_project
.
split
(
'/'
)[
-
1
]
for
folder
in
folder_list
:
for
folder
in
folder_list
:
if
folder
in
list
:
if
folder
in
list
:
continue
# this folder is already registered
continue
# this folder is already registered
...
...
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