]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Rename handle_snapshot and pass state
authorZane Bitter <zbitter@redhat.com>
Thu, 16 May 2013 11:18:18 +0000 (13:18 +0200)
committerZane Bitter <zbitter@redhat.com>
Thu, 16 May 2013 11:18:18 +0000 (13:18 +0200)
commiteddcf4c6e982335d8acb8f3b408b2bb841890af8
tree6913d6bb5711e25f6656187d50e673ffdf432549
parent5b82e2db04690b5f8b4ecdc593e09793c5baf31d
Rename handle_snapshot and pass state

Rename handle_snapshot() to handle_snapshot_delete() to better reflect what
it needs to do (both take a snapshot of the resource and then delete the
resource). Also, pass the state of the resource prior to delete being
invoked, since the resource may want to use different error handling in the
snapshot phase depending on e.g. whether the resource was created
successfully or not.

Change-Id: I1e5aaab4f13e42333c1f2f39bfeb0ebf2ac89ed8
heat/engine/resource.py
heat/engine/resources/volume.py