Merge pull request #83505 from misterikkit/govmomi-dep
Update dependency vmware/govmomi to v0.20.3
This commit is contained in:
6
vendor/github.com/vmware/govmomi/find/finder.go
generated
vendored
6
vendor/github.com/vmware/govmomi/find/finder.go
generated
vendored
@@ -906,6 +906,12 @@ func (f *Finder) DefaultFolder(ctx context.Context) (*object.Folder, error) {
|
||||
}
|
||||
folder := object.NewFolder(f.client, ref.Reference())
|
||||
|
||||
// Set the InventoryPath of the newly created folder object
|
||||
// The default foler becomes the datacenter's "vm" folder.
|
||||
// The "vm" folder always exists for a datacenter. It cannot be
|
||||
// removed or replaced
|
||||
folder.SetInventoryPath(path.Join(f.dc.InventoryPath, "vm"))
|
||||
|
||||
return folder, nil
|
||||
}
|
||||
|
||||
|
1
vendor/github.com/vmware/govmomi/vim25/soap/client.go
generated
vendored
1
vendor/github.com/vmware/govmomi/vim25/soap/client.go
generated
vendored
@@ -169,6 +169,7 @@ func (c *Client) NewServiceClient(path string, namespace string) *Client {
|
||||
|
||||
client := NewClient(u, c.k)
|
||||
client.Namespace = "urn:" + namespace
|
||||
client.Transport.(*http.Transport).TLSClientConfig = c.Transport.(*http.Transport).TLSClientConfig
|
||||
if cert := c.Certificate(); cert != nil {
|
||||
client.SetCertificate(*cert)
|
||||
}
|
||||
|
Reference in New Issue
Block a user