diff options
author | Thomas Herve <therve@redhat.com> | 2016-11-24 15:44:34 +0100 |
---|---|---|
committer | Thomas Herve <therve@redhat.com> | 2016-11-24 15:44:34 +0100 |
commit | cf2ecd453a82a0eab77e8645d27e74182cec942c (patch) | |
tree | 30b4e0500dd4b130e915c514f2108e8870644765 /heatclient/common/event_utils.py | |
parent | 57f9c0490bf6a8af92ab0f7f15547a6e9af035bb (diff) | |
download | python-heatclient-cf2ecd453a82a0eab77e8645d27e74182cec942c.tar.gz |
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
Diffstat (limited to 'heatclient/common/event_utils.py')
-rw-r--r-- | heatclient/common/event_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/common/event_utils.py b/heatclient/common/event_utils.py index 9208d0c..7711554 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) |