Commit 8f946621 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint warning

parent 188fe8be
......@@ -122,6 +122,9 @@ class SimulatedPlatform:
elif get_conf().placement_policy == "average":
node_list.sort(key=lambda n: n.container_count) # smallest first
return node_list[0]
else:
log.error('Unknown placement policy: {}'.format(get_conf().placement_policy))
return node_list[0]
def allocate_essential(self, execution: Execution) -> bool:
"""Try to find an allocation for essential services"""
......
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