Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
99dc3005
Commit
99dc3005
authored
Feb 16, 2018
by
Felix Seibert
Browse files
removing .id as the folder map's keys already are folder ids
parent
a02c4ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/OSDManager.py
View file @
99dc3005
...
...
@@ -680,8 +680,8 @@ class OSDManager(object):
def
get_containing_folder_id
(
self
,
path_on_volume
):
for
osd
in
self
.
distribution
.
OSDs
.
values
():
for
a_folder
in
osd
.
folders
:
if
path_on_volume
.
startswith
(
a_folder
.
id
):
return
a_folder
.
id
if
path_on_volume
.
startswith
(
a_folder
):
return
a_folder
return
None
def
__str__
(
self
):
...
...
Write
Preview
Supports
Markdown
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