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

Update negotiator.go #24

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Update negotiator.go #24

merged 1 commit into from
Nov 15, 2019

Conversation

mszuyev
Copy link
Contributor

@mszuyev mszuyev commented Nov 11, 2019

I've experienced the problem when non-nil err from rt.RoundTrip(req) didn't affect the result and this method returned pair nil, nil instead of nil, err.

@mszuyev
Copy link
Contributor Author

mszuyev commented Nov 11, 2019

Probably because of this error redeclaring in the same "if" block
u, p, err := reqauth.GetBasicCreds()

@SwampDragons
Copy link

SwampDragons commented Nov 15, 2019

I believe this will also solve hashicorp/packer#8229 and a handful of other issues we've had opened over the years.

@paulmey paulmey merged commit bad6df2 into Azure:master Nov 15, 2019
@SwampDragons
Copy link

Thanks @paulmey you rock!

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

Successfully merging this pull request may close these issues.

3 participants