diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2017-07-19 09:33:04 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2017-07-19 09:33:04 +0000 |
commit | d5a7303e3a1cf3b229ff505f5d0630360440106b (patch) | |
tree | b9bef3229cc374d2eb5930262bf1c92e840dd0a8 /api/__init__.py | |
parent | 1d1f93bd3b3fe2533289955c1fc47b2d215dd4ae (diff) |
Add API(v2) to add environment to task
JIRA: YARDSTICK-736
API: /api/v2/yardstick/tasks/<task_id>
METHOD: PUT
PARAMS:
{
'action': 'add_environment',
'args': {
'environment_id': environment_id
}
}
Change-Id: Idc31cb21de882d008202b6395158e9f9aa9244db
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/__init__.py')
-rw-r--r-- | api/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/__init__.py b/api/__init__.py index 3195c971b..c5aefffe8 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -45,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): |