From fef90c31f909efcc2fb4dc5bfc64712ef002e2a8 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 13 Jun 2023 16:54:03 +0530 Subject: [PATCH] removed count_entities from endpoint of ndb clusters --- client/era/era_service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/era/era_service.go b/client/era/era_service.go index 60a036dbe..25e8b44c9 100644 --- a/client/era/era_service.go +++ b/client/era/era_service.go @@ -132,10 +132,10 @@ func (sc ServiceClient) GetProfile(ctx context.Context, filter *ProfileFilter) ( func (sc ServiceClient) GetCluster(ctx context.Context, id string, name string) (*ListClusterResponse, error) { var path string if id != "" { - path = fmt.Sprintf("/clusters/%s?count_entities=true", id) + path = fmt.Sprintf("/clusters/%s", id) } if name != "" { - path = fmt.Sprintf("/clusters/name/%s?count_entities=true", name) + path = fmt.Sprintf("/clusters/name/%s", name) } httpReq, err := sc.c.NewRequest(ctx, http.MethodGet, path, nil) if err != nil { @@ -147,7 +147,7 @@ func (sc ServiceClient) GetCluster(ctx context.Context, id string, name string) } func (sc ServiceClient) ListClusters(ctx context.Context) (*ClusterListResponse, error) { - httpReq, err := sc.c.NewRequest(ctx, http.MethodGet, "/clusters?count_entities=true", nil) + httpReq, err := sc.c.NewRequest(ctx, http.MethodGet, "/clusters", nil) if err != nil { return nil, err }