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:
Thomas Herve 2016-11-24 15:44:34 +01:00 committed by Alfredo Moralejo
parent 144e5a883d
commit 6c4e27782c
1 changed files with 1 additions and 1 deletions

View File

@ -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)