fix the demo mode metrics calls
@@ -93,9 +93,9 @@ class DemoRunner:
for value in self.executor.execute(cmd, nodes=[node]).values():
if value["ret_code"] > 0:
self.logger.info("Error return code: %s", value)
- self.metric_collector.add_pod_kill_failed_metric(item)
+ self.metric_collector.add_pod_kill_failed_metric(pod)
else:
- self.metric_collector.add_pod_killed_metric(item)
+ self.metric_collector.add_pod_killed_metric(pod)
def sort_pods(self, pods):
return sorted(pods, key=lambda pod: (pod.metrics['cpu'], pod.metrics['memory']), reverse=True)
