summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2016-11-24 15:44:34 +0100
committerAlfredo Moralejo <amoralej@redhat.com>2017-07-14 15:11:09 +0000
commit6c4e27782c5768fef4365d4b0fcfae7eb1da39f2 (patch)
tree6f61784d6a9432af92109a13bffa20c321182b30
parent144e5a883d1f9f867e4174df3f35661c83ce4da7 (diff)
downloadpython-heatclient-stable/newton.tar.gz
Don't resolve outputs when polling eventsnewton-eol1.5.2stable/newton
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 cf2ecd453a82a0eab77e8645d27e74182cec942c)
-rw-r--r--heatclient/common/event_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/common/event_utils.py b/heatclient/common/event_utils.py
index 4c659aa..3654246 100644
--- a/heatclient/common/event_utils.py
+++ b/heatclient/common/event_utils.py
@@ -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)