Skip to content

Commit

Permalink
Return vmUUID when renewing nodeinfo in VCP
Browse files Browse the repository at this point in the history
  • Loading branch information
w-leads authored and redbaron committed Jul 20, 2018
1 parent 4910952 commit fc62900
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 fc62900

Please sign in to comment.