Commit 441b5d63 authored by Felix Seibert's avatar Felix Seibert
Browse files

fix tuple usage in lambda

parent 479b5c20
......@@ -241,7 +241,7 @@ class OSDManager(object):
print("rebalanced osd manager: \n" + str(self))
new_assignments = list(map(lambda key, value : (key, value[1]), list(movements.items())))
new_assignments = list(map(lambda item : (item[0], item[1][1]), list(movements.items())))
if self.debug:
print("new assignments: " + str(new_assignments))
self.apply_osd_assignments(new_assignments)
......
Markdown is supported
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