Skip to content

Commit

Permalink
Remove the error message added for debugging. (#7913)
Browse files Browse the repository at this point in the history
# Description

Remove the error message added for debugging.

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

Signed-off-by: Vishwanath Hiremath <vhiremath@microsoft.com>
  • Loading branch information
vishwahiremat authored Sep 10, 2024
1 parent 897f2aa commit 96fb582
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/rp/util/authclient/awsirsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package authclient
import (
"context"
"encoding/base64"
"errors"
"fmt"
"strings"

Expand Down Expand Up @@ -59,10 +58,10 @@ func (b *awsIRSA) GetAuthClient(ctx context.Context, templatePath string) (remot
return nil, err
}

awscfg, err := config.LoadDefaultConfig(context.TODO(),
awscfg, err := config.LoadDefaultConfig(ctx,
config.WithRegion(region))
if err != nil {
return nil, errors.New("first error : " + err.Error())
return nil, fmt.Errorf("failed to load configuration: %w", err)
}

// Create a credentials cache using the Web Identity Role Provider for AWS STS.
Expand Down

0 comments on commit 96fb582

Please sign in to comment.