Skip to content

Commit

Permalink
Merge pull request #90 from gdbranco/fix/ocm-13910-2
Browse files Browse the repository at this point in the history
OCM-13910 | fix: include defer close to response
  • Loading branch information
gdbranco authored Feb 10, 2025
2 parents 278b338 + 5926dc6 commit 26db59e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/rosa/oidcconfigs/oidcconfigs.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func FetchThumbprint(ctx context.Context, oidcEndpointURL string) (string, error
if err != nil {
return "", err
}
defer response.Body.Close()
certChain := response.TLS.PeerCertificates
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html
// If you see more than one certificate, find the last certificate displayed (at the end of the command output).
Expand Down

0 comments on commit 26db59e

Please sign in to comment.