From cf2ecd453a82a0eab77e8645d27e74182cec942c Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Thu, 24 Nov 2016 15:44:34 +0100 Subject: [PATCH] Don't resolve outputs when polling events In poll_for_events, we retrieve the stack to check its status. As it stands we resolve the outputs as well, which is costly and useless in this scenario. We can simpley get the stack to retrieve its status without outputs. Change-Id: Idc2327f6be15a679d502b0cd3e9d8980fdf1e22a Related-Bug: #1638908 --- heatclient/common/event_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heatclient/common/event_utils.py b/heatclient/common/event_utils.py index 9208d0c3..77115546 100644 --- a/heatclient/common/event_utils.py +++ b/heatclient/common/event_utils.py @@ -206,7 +206,7 @@ def poll_for_events(hc, stack_name, action=None, poll_period=5, marker=None, if no_event_polls >= 2: # after 2 polls with no events, fall back to a stack get - stack = hc.stacks.get(stack_name) + stack = hc.stacks.get(stack_name, resolve_outputs=False) stack_status = stack.stack_status msg = msg_template % dict( name=stack_name, status=stack_status)