don't delete the cache directory.

This commit is contained in:
Matthew Hooker 2018-04-26 12:00:35 -07:00
parent 97cfd60b82
commit de1dac1bdf
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ func (d *ESX5Driver) UploadISO(localPath string, checksum string, checksumType s
}
func (d *ESX5Driver) RemoveCache(localPath string) error {
finalPath := filepath.ToSlash(filepath.Dir(d.cachePath(localPath)))
finalPath := d.cachePath(localPath)
log.Printf("Removing remote cache path %s (local %s)", finalPath, localPath)
return d.sh("rm", "-rf", finalPath)
}