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
20d085dc
Commit
20d085dc
authored
Jan 27, 2017
by
Nicolas Wavrant
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: realpath of an URL is URL itself
parent
8ba67db8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
slapos/runner/utils.py
slapos/runner/utils.py
+3
-0
No files found.
slapos/runner/utils.py
View file @
20d085dc
...
@@ -793,6 +793,9 @@ def realpath(config, path, check_exist=True):
...
@@ -793,6 +793,9 @@ def realpath(config, path, check_exist=True):
Get realpath of path or return False if user is not allowed to access to
Get realpath of path or return False if user is not allowed to access to
this file.
this file.
"""
"""
_isurl = re.compile('
([
a
-
zA
-
Z0
-
9
+
.
-
]
+
):
//
').match
if _isurl(path):
return path
split_path = path.split('
/
')
split_path = path.split('
/
')
key = split_path[0]
key = split_path[0]
virtual_path_list = ('
software_root
', '
instance_root
', '
workspace
',
virtual_path_list = ('
software_root
', '
instance_root
', '
workspace
',
...
...
Nicolas Wavrant
@Nicolas
mentioned in merge request
nexedi/slapos!235 (merged)
·
Oct 03, 2017
mentioned in merge request
nexedi/slapos!235 (merged)
mentioned in merge request nexedi/slapos!235
Toggle commit list
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