summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py')
-rw-r--r--result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py b/result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py
index 86521b9..01697f7 100644
--- a/result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py
+++ b/result_collection_api/opnfv_testapi/dashboard/functest2Dashboard.py
@@ -34,8 +34,8 @@ def format_functest_for_dashboard(case, results):
then build the call to the specific method
"""
if check_functest_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"