mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 15:01:40 -04:00
Merge pull request #1146 from higebu/fix-esxi-driver-iso-upload-path
Fixes #1062, ESXi Driver supports PACKER_CACHE_DIR
This commit is contained in:
@@ -260,10 +260,8 @@ func (d *ESX5Driver) String() string {
|
||||
}
|
||||
|
||||
func (d *ESX5Driver) datastorePath(path string) string {
|
||||
if filepath.IsAbs(path) {
|
||||
return filepath.Join("/vmfs/volumes", d.Datastore, strings.Replace(path, "/", "", 1))
|
||||
}
|
||||
return filepath.Join("/vmfs/volumes", d.Datastore, path)
|
||||
baseDir := filepath.Base(filepath.Dir(path))
|
||||
return filepath.Join("/vmfs/volumes", d.Datastore, baseDir, filepath.Base(path))
|
||||
}
|
||||
|
||||
func (d *ESX5Driver) connect() error {
|
||||
|
||||
Reference in New Issue
Block a user