From b572c038302764b80cc1872afe6ec70cb9a34314 Mon Sep 17 00:00:00 2001 From: Nikolay Mahotkin Date: Fri, 19 Sep 2014 18:54:26 +0400 Subject: [PATCH] Fix passing params to execution Change-Id: Ifd685de68335df74892c5ee9910ff014be11bd6b --- mistral/api/controllers/v2/execution.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mistral/api/controllers/v2/execution.py b/mistral/api/controllers/v2/execution.py index 0a3ad722..314e61ea 100644 --- a/mistral/api/controllers/v2/execution.py +++ b/mistral/api/controllers/v2/execution.py @@ -55,10 +55,7 @@ class Execution(resource.Resource): d['output'] = json.loads(d['output']) if d.get('params'): - params = json.loads(d['params']) - del d['params'] - for k, v in params.items(): - d[k] = v + d['params'] = json.loads(d['params']) return d