summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-09-14 07:18:45 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-14 07:18:46 +0000
commit63b063d3901cc0ebf66be40c87a44abe60648558 (patch)
treedefc7ead1212e21d29df32095ab51998f9348aac /utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py
parent5facf6e1c57439569284b08ccf03e35cfb6a1672 (diff)
parentdd9e8643b72497eecdb4c80dc64f161b1562033b (diff)
Merge "Fix security issues of eval-s in testapi"
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py')
-rwxr-xr-xutils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py b/utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py
index 2e106bec8..f5e3d9a6e 100755
--- a/utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py
+++ b/utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py
@@ -48,8 +48,8 @@ def format_bottlenecks_for_dashboard(case, results):
then build the call to the specific method
"""
if check_bottlenecks_case_exist(case):
- cmd = "format_" + case + "_for_dashboard(results)"
- res = eval(cmd)
+ cmd = "format_" + case + "_for_dashboard"
+ res = globals()[cmd](results)
else:
res = []
print "Test cases not declared"