diff options
Diffstat (limited to 'helm/plugin/workflows.py')
-rw-r--r-- | helm/plugin/workflows.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/helm/plugin/workflows.py b/helm/plugin/workflows.py index 2999b73..de5549d 100644 --- a/helm/plugin/workflows.py +++ b/helm/plugin/workflows.py @@ -83,3 +83,13 @@ def rollback(node_instance_id, revision, **kwargs): operation_args = {'operation': 'rollback', } operation_args['kwargs'] = kwargs node_instance.execute_operation(**operation_args) + +@workflow +def status(**kwargs): + + for node in ctx.nodes: + for node_instance in node.instances: + kwargs = {} + operation_args = {'operation': 'status', } + operation_args['kwargs'] = kwargs + node_instance.execute_operation(**operation_args) |