vSphere provider: diskpaths format not valid for datastore in datastore cluster #8059
Labels
bug
provider/vsphere
waiting-response
An issue/pull request is waiting for a response from the community
virtual_disk and virtual_machine resources, make use of Sprintf to compile vmdk/iso paths:
diskPath := fmt.Sprintf("[%v] %v", vDisk.datastore, vDisk.vmdkPath)
These paths should be compile with the finder.Datastore object instead, e.g:
ds, err := getDatastore(finder, "myDataStore")
dsPath := ds.Path(pathInDatastore)
The text was updated successfully, but these errors were encountered: