diff options
author | Zane Bitter <zbitter@redhat.com> | 2017-02-17 11:28:24 -0500 |
---|---|---|
committer | Lukas Bezdicka <social@v3.sk> | 2017-03-06 15:02:09 +0000 |
commit | 7ffb87cb3aef2fd1b3b652c9129239531f985433 (patch) | |
tree | d728f4d1370dd8684079da2d9aed2c4ab27f64f7 | |
parent | 2dd83353c086a8ee3ee8aefb99b06832782d8cab (diff) | |
download | heat-7ffb87cb3aef2fd1b3b652c9129239531f985433.tar.gz |
Still wait for hooks on failed resources
Previously, if a resource was in a FAILED state Heat would set the hook
but not wait for the user to clear it before continuing. It is not clear
what case this was designed to handle, since there's no way that I know
of for the resource to go into a FAILED state while waiting for the
hook.
Change-Id: Iaacc585b9806c08fd5a57c80c10eeb31cb0a8f71
Closes-Bug: #1665699
(cherry picked from commit 5cd7ff3fa66779bb7db9bf36e55e95863bbfa0e9)
-rw-r--r-- | heat/engine/resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/engine/resource.py b/heat/engine/resource.py index e55718a77..33af02826 100644 --- a/heat/engine/resource.py +++ b/heat/engine/resource.py @@ -485,7 +485,7 @@ class Resource(object): % {'a': action, 'h': hook}) LOG.info(_LI('Reached hook on %s'), self) - while self.has_hook(hook) and self.status != self.FAILED: + while self.has_hook(hook): try: yield except BaseException as exc: |