From 57a432974de60220d5bc39ad42e5cda41a442917 Mon Sep 17 00:00:00 2001 From: Gamya Date: Thu, 6 Jun 2024 19:08:00 +0530 Subject: [PATCH] Update cluster_edge_native.go --- client/cluster_edge_native.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/cluster_edge_native.go b/client/cluster_edge_native.go index 2c373a4a..e7af4e12 100644 --- a/client/cluster_edge_native.go +++ b/client/cluster_edge_native.go @@ -53,19 +53,19 @@ func (h *V1Client) GetEdgeHost(edgeHostId string) (*models.V1EdgeHostDevice, err } func (h *V1Client) ListEdgeHosts() ([]*models.V1EdgeHostsMetadata, error) { - ContinueToken := "" - var Items []*models.V1EdgeHostsMetadata - for ok := true; ok; ok = (ContinueToken != "") { + continueToken := "" + var items []*models.V1EdgeHostsMetadata + for ok := true; ok; ok = (continueToken != "") { params := clientV1.NewV1DashboardEdgehostsSearchParamsWithContext(h.ctx) resp, err := h.Client.V1DashboardEdgehostsSearch(params) if err != nil { return nil, err } - ContinueToken = resp.Payload.Listmeta.Continue - Items = append(Items, resp.Payload.Items...) + continueToken = resp.Payload.Listmeta.Continue + items = append(items, resp.Payload.Items...) } - return Items, nil + return items, nil } func (h *V1Client) CreateClusterEdgeNative(cluster *models.V1SpectroEdgeNativeClusterEntity) (string, error) {