diff --git a/CHANGES.md b/CHANGES.md index 7a97478..2fca7ed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Change Log +## 2.0.2 + +* Added tasks option to `executions_re_run` to support re-running the execution from specific task. + ## 2.0.1 * Temporarily re-add Python 2 support until StackStorm v3.3 is EOL. diff --git a/actions/executions_re_run.py b/actions/executions_re_run.py index 02ec01d..58eff22 100644 --- a/actions/executions_re_run.py +++ b/actions/executions_re_run.py @@ -13,9 +13,10 @@ def format_result(item): class St2ExecutionsReRunAction(St2BaseAction): - def run(self, id, parameters=None): + def run(self, id, parameters=None, tasks=None): parameters = parameters or {} result = self.client.liveactions.re_run(execution_id=id, - parameters=parameters) + parameters=parameters, + tasks=tasks) result = format_result(item=result) return result diff --git a/actions/executions_re_run.yaml b/actions/executions_re_run.yaml index 130329e..ee9b21a 100644 --- a/actions/executions_re_run.yaml +++ b/actions/executions_re_run.yaml @@ -13,3 +13,7 @@ parameters: type: "object" description: "Parameter overrides" required: false + tasks: + type: "array" + description: "List of tasks to re-run" + required: false diff --git a/pack.yaml b/pack.yaml index 9670ea7..2d9486d 100644 --- a/pack.yaml +++ b/pack.yaml @@ -2,7 +2,7 @@ ref: st2 name: st2 description: StackStorm utility actions and aliases -version: 2.0.1 +version: 2.0.2 python_versions: # StackStorm v3.3 on Xenial still uses python 2.7 # and does not backtrack to find older supported versions,