Fix/azure iam (#381)

* fix: Fixed iam internal iam file removal bug
This commit is contained in:
Jon Austin
2024-01-22 13:00:41 -05:00
committed by GitHub
parent 68e800492e
commit d956ecacd7

View File

@@ -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