From 2e7361cf94af3d57ae57610118a8a8975e022f74 Mon Sep 17 00:00:00 2001 From: Hong Guan Date: Tue, 4 Dec 2018 14:35:36 -0500 Subject: Add a new 'status' workflow for Helm Plugin Change-Id: I87aa50b5ab5524494f035b290323c697169f26b9 Issue-ID: CCSDK-788 Signed-off-by: Hong Guan --- helm/plugin/workflows.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helm/plugin/workflows.py') 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) -- cgit 1.2.3-korg