Merge "Don't change INIT_COMPLETE resources to CHECK_COMPLETE"
This commit is contained in:
commit
b0a72cba7a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue