Merge pull request #34983 from thaJeztah/suppress-tmp-rename-warning
Suppress warning for renaming missing tmp directory Upstream-commit: 65234597216d03866bc26bdad06cb1f25f832206 Component: engine
This commit is contained in:
@ -1044,7 +1044,7 @@ func prepareTempDir(rootDir string, rootIDs idtools.IDPair) (string, error) {
|
||||
logrus.Warnf("failed to delete old tmp directory: %s", newName)
|
||||
}
|
||||
}()
|
||||
} else {
|
||||
} else if !os.IsNotExist(err) {
|
||||
logrus.Warnf("failed to rename %s for background deletion: %s. Deleting synchronously", tmpDir, err)
|
||||
if err := os.RemoveAll(tmpDir); err != nil {
|
||||
logrus.Warnf("failed to delete old tmp directory: %s", tmpDir)
|
||||
|
||||
Reference in New Issue
Block a user