Merge "Don't change INIT_COMPLETE resources to CHECK_COMPLETE"

This commit is contained in:
Zuul 2018-08-09 11:36:23 +00:00 committed by Gerrit Code Review
commit b0a72cba7a
1 changed files with 4 additions and 0 deletions

View File

@ -1736,6 +1736,10 @@ class Resource(status.ResourceStatus):
with self.frozen_properties():
return self._do_action(action)
else:
if self.state == (self.INIT, self.COMPLETE):
# No need to store status; better to leave the resource in
# INIT_COMPLETE than imply that we've checked and it exists.
return
reason = '%s not supported for %s' % (action, self.type())
self.state_set(action, self.COMPLETE, reason)