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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ritesh H Shukla
					Ritesh H Shukla