From fcd283aea0cc2e5ff7b2e6702cfed6d2b1ac4365 Mon Sep 17 00:00:00 2001 From: Clinton Kitson Date: Thu, 7 Jan 2016 09:00:56 -0800 Subject: [PATCH] Fixed problem re-authenticating during request This commit fixes the nested re-auth logic where it was not properly returning the response and causing a nil body to be attempted to be read. Signed-off-by: Clinton Kitson --- provider_client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provider_client.go b/provider_client.go index e813e0ee..92643556 100644 --- a/provider_client.go +++ b/provider_client.go @@ -197,6 +197,8 @@ func (client *ProviderClient) Request(method, url string, options RequestOpts) ( if err != nil { return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err) } + + return resp, nil } }