Skip to content

Commit

Permalink
fix error messgae
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwanath Hiremath <vhiremath@microsoft.com>
  • Loading branch information
vishwahiremat committed Sep 10, 2024
1 parent 897f2aa commit 61f6ab0
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 61f6ab0

Please sign in to comment.