summaryrefslogtreecommitdiff
path: root/heat/engine/stack.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/engine/stack.py')
-rw-r--r--heat/engine/stack.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/heat/engine/stack.py b/heat/engine/stack.py
index 33b0d268a..47d8cbfec 100644
--- a/heat/engine/stack.py
+++ b/heat/engine/stack.py
@@ -1835,11 +1835,13 @@ class Stack(collections.Mapping):
def _try_get_user_creds(self):
# There are cases where the user_creds cannot be returned
# due to credentials truncated when being saved to DB.
- # Ignore this error instead of blocking stack deletion.
+ # Also, there are cases where auth_encryption_key has
+ # changed for some reason.
+ # Ignore these errors instead of blocking stack deletion.
try:
return ucreds_object.UserCreds.get_by_id(self.context,
self.user_creds_id)
- except exception.Error:
+ except (exception.Error, exception.InvalidEncryptionKey):
LOG.exception("Failed to retrieve user_creds")
return None