From b291d4480aeeb88ca923cb387d24a2f7571940df Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Fri, 18 Oct 2024 19:33:57 +0530 Subject: [PATCH] addressed review comments --- client/node_actions.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/node_actions.go b/client/node_actions.go index f6403b1b..44975a29 100644 --- a/client/node_actions.go +++ b/client/node_actions.go @@ -225,10 +225,10 @@ func (h *V1Client) GetNodeMaintenanceStatusVsphere(configUID, machineName, nodeI } // GetNodeListInEdgeNativeMachinePool retrieves machine in the edge-native machine pool -func (h *V1Client) GetNodeListInEdgeNativeMachinePool(configUID, machineName string) (*models.V1EdgeNativeMachines, error) { +func (h *V1Client) GetNodeListInEdgeNativeMachinePool(configUID, machinePoolName string) (*models.V1EdgeNativeMachines, error) { params := clientv1.NewV1CloudConfigsEdgeNativePoolMachinesListParamsWithContext(h.ctx). WithConfigUID(configUID). - WithMachinePoolName(machineName) + WithMachinePoolName(machinePoolName) resp, err := h.Client.V1CloudConfigsEdgeNativePoolMachinesList(params) if err != nil { return nil, err @@ -237,10 +237,10 @@ func (h *V1Client) GetNodeListInEdgeNativeMachinePool(configUID, machineName str } // GetNodeInEdgeNativeMachinePool retrieves specific machine in the edge-native machine pool. -func (h *V1Client) GetNodeInEdgeNativeMachinePool(configUID, machineName, machineID string) (*models.V1EdgeNativeMachine, error) { +func (h *V1Client) GetNodeInEdgeNativeMachinePool(configUID, machinePoolName, machineID string) (*models.V1EdgeNativeMachine, error) { params := clientv1.NewV1CloudConfigsEdgeNativePoolMachinesUIDGetParamsWithContext(h.ctx). WithConfigUID(configUID). - WithMachinePoolName(machineName).WithMachineUID(machineID) + WithMachinePoolName(machinePoolName).WithMachineUID(machineID) resp, err := h.Client.V1CloudConfigsEdgeNativePoolMachinesUIDGet(params) if err != nil { return nil, err @@ -249,10 +249,10 @@ func (h *V1Client) GetNodeInEdgeNativeMachinePool(configUID, machineName, machin } // DeleteNodeInEdgeNativeMachinePool delete the specific node in the edge-native machine pool -func (h *V1Client) DeleteNodeInEdgeNativeMachinePool(configUID, machineName, machineID string) error { +func (h *V1Client) DeleteNodeInEdgeNativeMachinePool(configUID, machinePoolName, machineID string) error { params := clientv1.NewV1CloudConfigsEdgeNativePoolMachinesUIDDeleteParamsWithContext(h.ctx). WithConfigUID(configUID). - WithMachinePoolName(machineName). + WithMachinePoolName(machinePoolName). WithMachineUID(machineID) _, err := h.Client.V1CloudConfigsEdgeNativePoolMachinesUIDDelete(params) if err != nil {