Commit 99dc3005 authored by Felix Seibert's avatar Felix Seibert
Browse files

removing .id as the folder map's keys already are folder ids

parent a02c4ffa
......@@ -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):
......
Supports Markdown
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