Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit fcd283a

Browse files
committed
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 <[email protected]>
1 parent 0a866d9 commit fcd283a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

provider_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ func (client *ProviderClient) Request(method, url string, options RequestOpts) (
197197
if err != nil {
198198
return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err)
199199
}
200+
201+
return resp, nil
200202
}
201203
}
202204

0 commit comments

Comments
 (0)