From 7f2efadea78b4a23f73ce304c448354ebedc4ffa Mon Sep 17 00:00:00 2001 From: ITD27M01 Date: Wed, 27 Mar 2019 15:31:29 +0300 Subject: [PATCH] Adds missing "params" attribute for creating a Mistral workflow execution The v2 API of Mistral service have "params" attribute for creating workflow execution [1]. This attribute is a json object for workflow type-specific parameters. For example, the "env" (environment) dict can be used for installation specific inputs (dev/staging/etc..). We are using such env's to split environments but having the same logic in workflows definitions. [1] https://docs.openstack.org/mistral/latest/api/v2.html#executions Change-Id: Ic317b10c7b0053a8103ea2060491e437efc6898f Story: 2005232 Task: 30014 --- openstack/workflow/v2/execution.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstack/workflow/v2/execution.py b/openstack/workflow/v2/execution.py index 5e8787ba9..9fa73c80c 100644 --- a/openstack/workflow/v2/execution.py +++ b/openstack/workflow/v2/execution.py @@ -43,6 +43,8 @@ class Execution(resource.Resource): #: A JSON structure containing workflow input values # TODO(briancurtin): type=dict input = resource.Body("input") + #: An optional JSON structure containing workflow type specific parameters + params = resource.Body("params") #: The output of the workflow output = resource.Body("output") #: The time at which the Execution was created