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

Fix arguments to format()

parent c1a0048b
......@@ -139,7 +139,7 @@ class SimulatedPlatform:
if node.service_fits(service):
candidate_nodes.append(node)
else:
reasons += 'node {}: {} ## '.format(service.id, node.name, node.service_why_unfit(service))
reasons += 'node {}: {} ## '.format(node.name, node.service_why_unfit(service))
if len(candidate_nodes) == 0: # this service does not fit anywhere
self.deallocate_essential(execution)
log.info('Cannot fit essential service {} anywhere, reasons: {}'.format(service.id, reasons))
......@@ -168,7 +168,7 @@ class SimulatedPlatform:
if node.service_fits(service):
candidate_nodes.append(node)
else:
reasons += 'node {}: {} ## '.format(service.id, node.name, node.service_why_unfit(service))
reasons += 'node {}: {} ## '.format(node.name, node.service_why_unfit(service))
if len(candidate_nodes) == 0: # this service does not fit anywhere
log.info('Cannot fit elastic service {} anywhere, reasons: {}'.format(service.id, reasons))
continue
......
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