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
(cherry picked from commit cf2ecd453a
)
This commit is contained in:
parent
144e5a883d
commit
6c4e27782c
|
@ -216,7 +216,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)
|
||||
|
|
Loading…
Reference in New Issue