Skip to content

Commit

Permalink
fix: Fixed iam internal iam file removal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt180 committed Jan 22, 2024
1 parent cdd2915 commit c4d9dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/iam_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (s *IAMServiceInternal) storeIAM(update UpdateAcctFunc) error {
// reset retries on successful read
retries = 0

err = os.Remove(iamFile)
err = os.Remove(fname)
if errors.Is(err, fs.ErrNotExist) {
// racing with someone else updating
// keep retrying after backoff
Expand Down

0 comments on commit c4d9dd5

Please sign in to comment.