Merge "Calculate resource data prior to legacy updates"

This commit is contained in:
Zuul 2021-06-18 07:08:49 +00:00 committed by Gerrit Code Review
commit e290a0aad3
1 changed files with 5 additions and 0 deletions

View File

@ -1387,6 +1387,11 @@ class Stack(collections.abc.Mapping):
Update will fail if it exceeds the specified timeout. The default is
60 minutes, set in the constructor
"""
# Populate resource data needed for calulating frozen definitions
# (particularly for metadata, which doesn't get stored separately).
self._update_all_resource_data(for_resources=True,
for_outputs=False)
self.updated_time = oslo_timeutils.utcnow()
updater = scheduler.TaskRunner(self.update_task, newstack,
msg_queue=msg_queue, notify=notify)