As the same is done for other numeric parameter values there are some
others left that also need conversion otherwise the application crash
with TypeError: %d format: a number is required, not str
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
perfrepo | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/perfrepo b/perfrepo
index 2fddf39..e4fa719 100755
--- a/perfrepo
+++ b/perfrepo
@@ -605,7 +605,7 @@ class ReportCLI(GenericCLI):
else:
break
elif op == "del":
- series_num = argv[i+1]
+ series_num = int(argv[i+1])
report.del_series(chart_num, series_num)
i += 2
continue
@@ -623,7 +623,7 @@ class ReportCLI(GenericCLI):
% e.args[0])
return -1
elif op == "edit":
- baseline_num = argv[i+1]
+ baseline_num = int(argv[i+1])
i += 2
while i < len(argv):
if argv[i] == "name":
@@ -647,7 +647,7 @@ class ReportCLI(GenericCLI):
else:
break
elif op == "del":
- baseline_num = argv[i+1]
+ baseline_num = int(argv[i+1])
report.del_baseline(chart_num, baseline_num)
i += 2
continue
--
2.1.0
Show replies by thread