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