Skip to content

Commit

Permalink
Fix backwards invocation of io.Copy (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosheskaz authored Jan 3, 2024
1 parent 65b0d52 commit 2874761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/granted/registry/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func SyncProfileRegistries(shouldSilentLog bool, promptUserIfProfileDuplication
}

tmpConfigPath := path.Join(tmpDir, "aws-config")
if err := copyFile(awsConfigPath, tmpConfigPath); err != nil {
if err := copyFile(tmpConfigPath, awsConfigPath); err != nil {
return fmt.Errorf("failed to copy aws config to tempfile for update")
}

Expand Down

0 comments on commit 2874761

Please sign in to comment.