From 6be8a0c5ef2208afb8bd9987682deb7f15158455 Mon Sep 17 00:00:00 2001 From: Gamya Date: Wed, 26 Jun 2024 19:00:49 +0530 Subject: [PATCH] added edge host filter for PEM-5001 --- client/cluster_edge_native.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cluster_edge_native.go b/client/cluster_edge_native.go index 1cd54f7b..e612bc2e 100644 --- a/client/cluster_edge_native.go +++ b/client/cluster_edge_native.go @@ -72,7 +72,7 @@ func (h *V1Client) ListEdgeHosts() ([]*models.V1EdgeHostsMetadata, error) { func (h *V1Client) GetEdgeHostsByTags(tags map[string]string) ([]*models.V1EdgeHostsMetadata, error) { continueToken := "" var items []*models.V1EdgeHostsMetadata - filter := getEdgeFilter(nil, tags) + filter := GetEdgeFilter(nil, tags) for ok := true; ok; ok = (continueToken != "") { params := clientV1.NewV1DashboardEdgehostsSearchParamsWithContext(h.ctx). WithBody(&models.V1SearchFilterSummarySpec{ @@ -90,7 +90,7 @@ func (h *V1Client) GetEdgeHostsByTags(tags map[string]string) ([]*models.V1EdgeH return items, nil } -func getEdgeFilter(extraFilters []*models.V1SearchFilterItem, tags map[string]string) *models.V1SearchFilterSpec { +func GetEdgeFilter(extraFilters []*models.V1SearchFilterItem, tags map[string]string) *models.V1SearchFilterSpec { filter := &models.V1SearchFilterSpec{ Conjunction: and(), FilterGroups: []*models.V1SearchFilterGroup{