Skip to content

Commit

Permalink
Merge pull request #66444 from redbaron/automated-cherry-pick-of-#660…
Browse files Browse the repository at this point in the history
…07-upstream-release-1.10

Automatic merge from submit-queue.

Automated cherry pick of #66007: Return vmUUID when renewing nodeinfo in VCP

Cherry pick of #66007 on release-1.10.

#66007: Return vmUUID when renewing nodeinfo in VCP
  • Loading branch information
Kubernetes Submit Queue committed Jul 30, 2018
2 parents 7b222aa + fc62900 commit bfa3c54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cloudprovider/providers/vsphere/nodemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@ func (nm *NodeManager) renewNodeInfo(nodeInfo *NodeInfo, reconnect bool) (*NodeI
}
}
vm := nodeInfo.vm.RenewVM(vsphereInstance.conn.GoVmomiClient)
return &NodeInfo{vm: &vm, dataCenter: vm.Datacenter, vcServer: nodeInfo.vcServer}, nil
return &NodeInfo{
vm: &vm,
dataCenter: vm.Datacenter,
vcServer: nodeInfo.vcServer,
vmUUID: nodeInfo.vmUUID,
}, nil
}

func (nodeInfo *NodeInfo) VM() *vclib.VirtualMachine {
Expand Down

0 comments on commit bfa3c54

Please sign in to comment.