X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=api%2F__init__.py;h=3235022326e7002e3d4e320424287a79b641bcf4;hb=ae6e4c314f86992b3a51933690b68d1751c0ba55;hp=4622802dffe3d63596ab3b0dcfe805bba4b42b47;hpb=f83729d38eb396fe5a94be13a86865f9cd26d0f4;p=yardstick.git diff --git a/api/__init__.py b/api/__init__.py index 4622802df..323502232 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -34,18 +34,18 @@ class ApiResource(Resource): except KeyError: pass - LOG.debug('Input args is: action: %s, args: %s', action, args) + args.update({k: v for k, v in request.form.items()}) return action, args def _get_args(self): args = common_utils.translate_to_str(request.args) - LOG.debug('Input args is: args: %s', args) 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):