Merge "Persist external resources on update"

This commit is contained in:
Zuul 2018-03-27 15:11:10 +00:00 committed by Gerrit Code Review
commit 8e03ffcd2a
1 changed files with 2 additions and 0 deletions

View File

@ -1607,6 +1607,8 @@ class Resource(status.ResourceStatus):
raise exception.ResourceFailure(exc, self, action)
elif after_external_id is not None:
LOG.debug("Skip update on external resource.")
if update_templ_func is not None:
update_templ_func(persist=True)
return
after_props, before_props = self._prepare_update_props(after, before)