Skip to content

Commit

Permalink
taking out extra var
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 committed Jan 30, 2024
1 parent 6642c8e commit bf8af35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fmatch/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def get_agg_metric_query(self, uuids, index, metrics):
}
runs = self.query_index(index, query)
self.logger.debug("Run details %s", str(runs))
data = self.parse_agg_results(runs, metric_of_interest, agg_value, agg_type)
data = self.parse_agg_results(runs, agg_value, agg_type)
return data

def burner_metric_query(self, uuids, namespace, index, metricName):
Expand Down Expand Up @@ -407,7 +407,7 @@ def parse_burner_cpu_results(self, data: dict):
res.append(dat)
return res

def parse_agg_results(self, data: dict, metric_of_interest, agg_value, agg_type):
def parse_agg_results(self, data: dict, agg_value, agg_type):
""" parse out CPU data from kube-burner query
Args:
data (dict): _description_
Expand Down
2 changes: 1 addition & 1 deletion fmatch/tests/test_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_parse_agg_results(matcher_instance):
"cpu_avg": 10.818089329872935,
}
]
result = matcher_instance.parse_agg_results(mock_data, "value", "cpu", "avg")
result = matcher_instance.parse_agg_results(mock_data, "cpu", "avg")
assert result == expected


Expand Down

0 comments on commit bf8af35

Please sign in to comment.