aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/base.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-08-25 12:14:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-25 12:14:44 +0000
commit6726fb16f9719b21636454c9573f0cc716ea25f4 (patch)
treeffda41263cee63e6dee67356a733a9c0e55a6f41 /functest/api/base.py
parent6e1245a7d19d62810fbe5ee1aab248a85fa2bc15 (diff)
parentdc73f1b7cb3afffcace97e3ede9dd25639def6e2 (diff)
Merge "Create API to get log for each task"
Diffstat (limited to 'functest/api/base.py')
-rw-r--r--functest/api/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/functest/api/base.py b/functest/api/base.py
index ffc56786..75f059b7 100644
--- a/functest/api/base.py
+++ b/functest/api/base.py
@@ -45,6 +45,11 @@ class ApiResource(Resource):
return action, args
+ def _get_args(self): # pylint: disable=no-self-use
+ """ Convert the unicode to string for request.args """
+ args = api_utils.change_to_str_in_dict(request.args)
+ return args
+
def _dispatch_post(self):
""" Dispatch request """
action, args = self._post_args()