mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
Merge pull request #480 from openziti/fix-list-edge-router-associations
Fix edge-router association lists
This commit is contained in:
@@ -137,11 +137,11 @@ func (r *EdgeRouterRouter) listEdgeRouterPolicies(ae *env.AppEnv, rc *response.R
|
||||
}
|
||||
|
||||
func (r *EdgeRouterRouter) listIdentities(ae *env.AppEnv, rc *response.RequestContext) {
|
||||
filterTemplate := `not isEmpty(from edgeRouterPolicies where anyOf(edgeRouters) = "%v")`
|
||||
filterTemplate := `not isEmpty(from edgeRouterPolicies where anyOf(routers) = "%v")`
|
||||
ListAssociationsWithFilter(ae, rc, filterTemplate, ae.Handlers.Identity, MapIdentityToRestEntity)
|
||||
}
|
||||
|
||||
func (r *EdgeRouterRouter) listServices(ae *env.AppEnv, rc *response.RequestContext) {
|
||||
filterTemplate := `not isEmpty(from serviceEdgeRouterPolicies where anyOf(edgeRouters) = "%v")`
|
||||
filterTemplate := `not isEmpty(from serviceEdgeRouterPolicies where anyOf(routers) = "%v")`
|
||||
ListAssociationsWithFilter(ae, rc, filterTemplate, ae.Handlers.EdgeService, MapServiceToRestEntity)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user