# NOTE(jerdfelt): The API implies that only ACTIVE and ERROR are
# 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.BUILDING, vm_states.ERROR, vm_states.RESCUED, vm_states.SHUTOFF, vm_states.STOPPED])
def delete(self, context, instance):
Essex
# NOTE(jerdfelt): The API implies that only ACTIVE and ERROR are check_policy instance_ state(vm_ state=[ vm_states. ACTIVE, vm_states.BUILDING,
vm_states. ERROR, vm_states.RESCUED,
vm_states. SHUTOFF, vm_states.STOPPED])
# allowed but the EC2 API appears to allow from RESCUED and STOPPED
# too
@wrap_
@check_
def delete(self, context, instance):