From ef23bda207a6e62433d0f7178093d3498431c919 Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Sun, 19 Nov 2023 14:39:03 -0600 Subject: [PATCH] Fix Signed-off-by: Tyler Gu --- performance_measurement/measure_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/performance_measurement/measure_runner.py b/performance_measurement/measure_runner.py index 1acd3c3b0..8d89c3af1 100644 --- a/performance_measurement/measure_runner.py +++ b/performance_measurement/measure_runner.py @@ -229,7 +229,7 @@ def run(self, condition_1 = None condition_2 = None if sts_name_f: - last_spec = event_list[-1][0].to_dict()["spec"] + last_spec = event_list[-1][0]['object'].to_dict()["spec"] last_spec_hash = hashlib.sha256(json.dumps( last_spec, sort_keys=True).encode()).hexdigest() @@ -278,7 +278,7 @@ def run(self, # else: # continue elif daemon_set_name_f: - last_spec = event_list[-1][0].to_dict()["spec"] + last_spec = event_list[-1][0]['object'].to_dict()["spec"] last_spec_hash = hashlib.sha256(json.dumps( last_spec, sort_keys=True).encode()).hexdigest() prev_spec = None