From: Ondrej Lichtner <olichtne(a)redhat.com>
The order of arguments for the add_baseline() method was wrong.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
perfrepo | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/perfrepo b/perfrepo
index 803d15c..2fddf39 100755
--- a/perfrepo
+++ b/perfrepo
@@ -434,8 +434,8 @@ class ReportCLI(GenericCLI):
for baseline in chart["baselines"]:
try:
report.add_baseline(None, baseline["name"],
- baseline["metric"],
- baseline["execid"])
+ baseline["execid"],
+ baseline["metric"])
except KeyError as e:
print("Parameter '%s' is required for a baseline!" %\
e.args[0])
--
2.6.0