Skip to content

last_operation can never send 404 ? #181

@skippy29

Description

@skippy29

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" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions