mirror of https://github.com/docker/cli.git
stack/swarm: remove unneeded getStackServiceFilter()
It was now an alias for getStackFilter, so no longer needed Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
cff010c61f
commit
1924bc9f0f
|
@ -17,10 +17,6 @@ func getStackFilter(namespace string) filters.Args {
|
||||||
return filter
|
return filter
|
||||||
}
|
}
|
||||||
|
|
||||||
func getStackServiceFilter(namespace string) filters.Args {
|
|
||||||
return getStackFilter(namespace)
|
|
||||||
}
|
|
||||||
|
|
||||||
func getStackFilterFromOpt(namespace string, opt opts.FilterOpt) filters.Args {
|
func getStackFilterFromOpt(namespace string, opt opts.FilterOpt) filters.Args {
|
||||||
filter := opt.Value()
|
filter := opt.Value()
|
||||||
filter.Add("label", convert.LabelNamespace+"="+namespace)
|
filter.Add("label", convert.LabelNamespace+"="+namespace)
|
||||||
|
@ -34,7 +30,7 @@ func getAllStacksFilter() filters.Args {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getStackServices(ctx context.Context, apiclient client.APIClient, namespace string) ([]swarm.Service, error) {
|
func getStackServices(ctx context.Context, apiclient client.APIClient, namespace string) ([]swarm.Service, error) {
|
||||||
return apiclient.ServiceList(ctx, types.ServiceListOptions{Filters: getStackServiceFilter(namespace)})
|
return apiclient.ServiceList(ctx, types.ServiceListOptions{Filters: getStackFilter(namespace)})
|
||||||
}
|
}
|
||||||
|
|
||||||
func getStackNetworks(ctx context.Context, apiclient client.APIClient, namespace string) ([]types.NetworkResource, error) {
|
func getStackNetworks(ctx context.Context, apiclient client.APIClient, namespace string) ([]types.NetworkResource, error) {
|
||||||
|
|
Loading…
Reference in New Issue