mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Fix panic in vSphere when deploying on a single ESX node.
Use ComputeResource instead of ClusterComputeResource when initializing the vSphere Cloud Provider
This commit is contained in:
parent
bb0bc660cf
commit
26db528da3
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func readInstance(cfg *VSphereConfig) (string, string, error) {
|
|||
var rp mo.ResourcePool
|
||||
err = s.Properties(ctx, *vm.ResourcePool, []string{"parent"}, &rp)
|
||||
if err == nil {
|
||||
var ccr mo.ClusterComputeResource
|
||||
var ccr mo.ComputeResource
|
||||
err = s.Properties(ctx, *rp.Parent, []string{"name"}, &ccr)
|
||||
if err == nil {
|
||||
cluster = ccr.Name
|
||||
|
|
|
|||
Loading…
Reference in a new issue