summaryrefslogtreecommitdiffstats
path: root/api/__init__.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-07-13 09:39:20 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-07-14 04:22:03 +0000
commit1a83219677fd0ce48f59e09f5a787d8296ba9261 (patch)
tree5651b4d9f6a2ae2a901a49b9e49a0eed879ff371 /api/__init__.py
parente1d830c41c0f67b631b5b83f295f9dd1d6f6f0f1 (diff)
Add API(v2) to upload openrc
JIRA: YARDSTICK-719 API: /api/v2/yardstick/environments/openrcs/action METHOD: POST PARAMS: { 'action': 'upload_openrc', 'args': { 'file': file, 'environment_id': environment_id } } Change-Id: If367904a2d0c2d4a192fdc87a8da21ac6549269e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/__init__.py')
-rw-r--r--api/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/__init__.py b/api/__init__.py
index 4622802df..3195c971b 100644
--- a/api/__init__.py
+++ b/api/__init__.py
@@ -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