we never expect remote cache to be a directory.
This commit is contained in:
parent
de1dac1bdf
commit
67a9c7fb92
|
@ -141,7 +141,7 @@ func (d *ESX5Driver) UploadISO(localPath string, checksum string, checksumType s
|
||||||
func (d *ESX5Driver) RemoveCache(localPath string) error {
|
func (d *ESX5Driver) RemoveCache(localPath string) error {
|
||||||
finalPath := d.cachePath(localPath)
|
finalPath := d.cachePath(localPath)
|
||||||
log.Printf("Removing remote cache path %s (local %s)", finalPath, localPath)
|
log.Printf("Removing remote cache path %s (local %s)", finalPath, localPath)
|
||||||
return d.sh("rm", "-rf", finalPath)
|
return d.sh("rm", "-f", finalPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *ESX5Driver) ToolsIsoPath(string) string {
|
func (d *ESX5Driver) ToolsIsoPath(string) string {
|
||||||
|
|
Loading…
Reference in New Issue