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 <clintonskitson@gmail.com>
diff --git a/provider_client.go b/provider_client.go
index e813e0e..9264355 100644
--- a/provider_client.go
+++ b/provider_client.go
@@ -197,6 +197,8 @@
if err != nil {
return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err)
}
+
+ return resp, nil
}
}