Merge pull request #83505 from misterikkit/govmomi-dep

Update dependency vmware/govmomi to v0.20.3
This commit is contained in:
Kubernetes Prow Robot
2019-11-14 17:49:37 -08:00
committed by GitHub
7 changed files with 15 additions and 8 deletions

View File

@@ -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
}

View File

@@ -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)
}