Commit 9aa64579 authored by Felix Seibert's avatar Felix Seibert
Browse files

fix tuple usage in lambda

parent d2d26e0a
...@@ -241,7 +241,7 @@ class OSDManager(object): ...@@ -241,7 +241,7 @@ class OSDManager(object):
print("rebalanced osd manager: \n" + str(self)) 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: if self.debug:
print("new assignments: " + str(new_assignments)) print("new assignments: " + str(new_assignments))
self.apply_osd_assignments(new_assignments) self.apply_osd_assignments(new_assignments)
......
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