Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last_operation can never send 404 ? #181

Open
skippy29 opened this issue Nov 25, 2021 · 0 comments
Open

last_operation can never send 404 ? #181

skippy29 opened this issue Nov 25, 2021 · 0 comments

Comments

@skippy29
Copy link

on last_operation:

        try:
            result = service_broker.last_operation(instance_id, operation_data)
            return to_json_response(LastOperationResponse(result.state, result.description)), HTTPStatus.OK
        except errors.ErrInstanceDoesNotExist:
            return to_json_response(LastOperationResponse(OperationState.SUCCEEDED, '')), HTTPStatus.GONE

My understanding from spec is that 410 (Gone) should be sent only for asynchronous delete operations.

This would mean that there's currently no way to differentiate a "does not exist anymore" and a "has never existed" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant