diff --git a/api/server/router/network/filter.go b/api/server/router/network/filter.go index 94affb83cd..1548be34fe 100644 --- a/api/server/router/network/filter.go +++ b/api/server/router/network/filter.go @@ -9,8 +9,8 @@ import ( ) var ( - // AcceptedFilters is an acceptable filters for validation - AcceptedFilters = map[string]bool{ + // acceptedNetworkFilters is a list of acceptable filters + acceptedNetworkFilters = map[string]bool{ "driver": true, "type": true, "name": true, @@ -47,7 +47,7 @@ func filterNetworks(nws []types.NetworkResource, filter filters.Args) ([]types.N return nws, nil } - if err := filter.Validate(AcceptedFilters); err != nil { + if err := filter.Validate(acceptedNetworkFilters); err != nil { return nil, err }