Skip to content

Commit

Permalink
revert session credential storage fix (moved to a separate PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrnorm committed Apr 6, 2024
1 parent f368e57 commit 733e47e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/securestorage/session_credential_storage.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package securestorage

import (
"errors"

"github.com/aws/aws-sdk-go-v2/aws"
)

Expand Down Expand Up @@ -34,9 +32,6 @@ func (i *SessionCredentialSecureStorage) GetCredentials(profile string) (*aws.Cr
}

func (i *SessionCredentialSecureStorage) StoreCredentials(profile string, credentials aws.Credentials) (err error) {
if credentials.AccessKeyID == "" {
return errors.New("could not cache credentials: access key ID was empty")
}
err = i.SecureStorage.Store(profile, &credentials)
return
}

0 comments on commit 733e47e

Please sign in to comment.