Merge "Don't store attributes if resource not stored"

This commit is contained in:
Jenkins 2017-07-01 04:08:44 +00:00 committed by Gerrit Code Review
commit f343fbde80
1 changed files with 2 additions and 1 deletions

View File

@ -539,7 +539,8 @@ class EngineService(service.ServiceBase):
for stack in stacks:
if stack.convergence:
for res in six.itervalues(stack.resources):
res.store_attributes()
if res.id is not None:
res.store_attributes()
return retval
def get_revision(self, cnxt):