Commit 109fa931 authored by Felix Seibert's avatar Felix Seibert
Browse files

add check whether updated folders are known in the dataDistribution

parent e91cbc39
...@@ -533,10 +533,13 @@ class DataDistribution(object): ...@@ -533,10 +533,13 @@ class DataDistribution(object):
""" """
updates the size of a given folder updates the size of a given folder
""" """
found_containing_osd = False
for one_osd in self.OSDs.values(): for one_osd in self.OSDs.values():
if folder in one_osd.folders.keys(): if folder in one_osd.folders.keys():
one_osd.update_folder(folder, size) one_osd.update_folder(folder, size)
found_containing_osd = True
break break
assert found_containing_osd is True
def description(self): def description(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