Merge "Open storperf testcase to huawei-pod2"
[yardstick.git] / api / __init__.py
index 4622802..c5aefff 100644 (file)
@@ -34,6 +34,7 @@ class ApiResource(Resource):
         except KeyError:
             pass
 
+        args.update({k: v for k, v in request.form.items()})
         LOG.debug('Input args is: action: %s, args: %s', action, args)
 
         return action, args
@@ -44,8 +45,9 @@ class ApiResource(Resource):
 
         return args
 
-    def _dispatch_post(self):
+    def _dispatch_post(self, **kwargs):
         action, args = self._post_args()
+        args.update(kwargs)
         return self._dispatch(args, action)
 
     def _dispatch(self, args, action):