diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-01-19 19:51:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-01-19 19:51:11 +0000 |
| commit | 4f204a6d75f2d48608aeeafae20ab3bf8cbadf73 (patch) | |
| tree | b145f37cd64feb8d52419817f063a872aaed2b96 /nova/compute | |
| parent | 4672ec7c95845ddd1df29ffa88848c22df512a42 (diff) | |
| parent | c7d2f020f0fdf04b24bd21668e7a02796f1f5538 (diff) | |
Merge "Allow instances in 'BUILD' state to be deleted."
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 012217584..d28f0be4b 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -839,9 +839,9 @@ class API(base.Base): # allowed but the EC2 API appears to allow from RESCUED and STOPPED # too @wrap_check_policy - @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.SHUTOFF, + @check_instance_state(vm_state=[vm_states.ACTIVE, vm_states.BUILDING, vm_states.ERROR, vm_states.RESCUED, - vm_states.STOPPED]) + vm_states.SHUTOFF, vm_states.STOPPED]) @scheduler_api.reroute_compute("delete") def delete(self, context, instance): """Terminate an instance.""" |
