Commit 09988164 authored by Felix Seibert's avatar Felix Seibert
Browse files

using values instead of keys

parent c094ac1e
......@@ -678,7 +678,7 @@ class OSDManager(object):
search for the assigned folder that is a prefix of the given path on volume
'''
def get_containing_folder_id(self, path_on_volume):
for osd in self.distribution.OSDs:
for osd in self.distribution.OSDs.values():
for a_folder in osd.folders.values():
if path_on_volume.startsWith(a_folder.id):
return a_folder.id
......
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