diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-09-14 07:18:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-14 07:18:46 +0000 |
commit | 63b063d3901cc0ebf66be40c87a44abe60648558 (patch) | |
tree | defc7ead1212e21d29df32095ab51998f9348aac /utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py | |
parent | 5facf6e1c57439569284b08ccf03e35cfb6a1672 (diff) | |
parent | dd9e8643b72497eecdb4c80dc64f161b1562033b (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-x | utils/test/result_collection_api/opnfv_testapi/dashboard/bottlenecks2Dashboard.py | 4 |
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" |