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) {