Skip to content

Commit

Permalink
Fix the typo in credentials
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Varlı <[email protected]>
  • Loading branch information
unexge committed Feb 3, 2025
1 parent 038d88c commit da36e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/driver/node/credentialprovider/awsprofile/aws_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func (s *Settings) prefixedPath(filename string) string {

// Create creates an AWS Profile with credentials and config files from given credentials.
// Created credentials and config files can be clean up with [Cleanup].
func Create(settings Settings, credentias Credentials) (Profile, error) {
if !credentias.isValid() {
func Create(settings Settings, credentials Credentials) (Profile, error) {
if !credentials.isValid() {
return Profile{}, ErrInvalidCredentials
}

Expand All @@ -89,7 +89,7 @@ func Create(settings Settings, credentias Credentials) (Profile, error) {

credentialsFilename := settings.prefixed(awsProfileCredentialsFilenameSuffix)
credentialsPath := settings.path(credentialsFilename)
err = writeAWSProfileFile(credentialsPath, credentialsFileContents(name, credentias), settings.FilePerm)
err = writeAWSProfileFile(credentialsPath, credentialsFileContents(name, credentials), settings.FilePerm)
if err != nil {
return Profile{}, fmt.Errorf("aws-profile: Failed to create credentials file %s: %v", credentialsPath, err)
}
Expand Down

0 comments on commit da36e6d

Please sign in to comment.