Skip to content

Commit

Permalink
Update cluster_edge_native.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MGamya committed Jun 6, 2024
1 parent 15de0ba commit 57a4329
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/cluster_edge_native.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57a4329

Please sign in to comment.