Do not remove tmp dir anymore, as it's used by others too

This commit is contained in:
Daniel 2020-05-08 10:57:06 +02:00
parent 98589f8008
commit 74fc1dc888

View file

@ -121,11 +121,5 @@ func (reg *ResourceRegistry) DownloadUpdates(ctx context.Context) error {
}
log.Infof("%s: finished downloading updates", reg.Name)
// remove tmp folder after we are finished
err = os.RemoveAll(reg.tmpDir.Path)
if err != nil {
log.Tracef("%s: failed to remove tmp dir %s after downloading updates: %s", reg.Name, reg.tmpDir.Path, err)
}
return nil
}