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

Bug 1535652 - return 200 to bind PUT when a binding already exists #650

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

mhrivnak
Copy link
Member

fixes #649

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 17, 2018
@jmrodri jmrodri self-requested a review January 17, 2018 20:48
@jmrodri jmrodri changed the title 1535652 - return 200 to bind PUT when a binding already exists Bug 1535652 - return 200 to bind PUT when a binding already exists Jan 17, 2018
Copy link
Contributor

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@@ -565,7 +565,7 @@ func (h handler) bind(w http.ResponseWriter, r *http.Request, params map[string]
switch err {
case broker.ErrorDuplicate:
writeResponse(w, http.StatusConflict, broker.BindResponse{})
case broker.ErrorAlreadyProvisioned:
case broker.ErrorBindingExists:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch. this was part of the copy from provision.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c9e64a4 on mhrivnak:bind-exists-return-200 into ** on openshift:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c9e64a4 on mhrivnak:bind-exists-return-200 into ** on openshift:master**.

@jmrodri jmrodri merged commit 2caf6cc into openshift:master Jan 17, 2018
@mhrivnak mhrivnak deleted the bind-exists-return-200 branch January 18, 2018 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files. spec-compliance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

async bind returns 201 instead of 200
4 participants