move service runtime filter to server

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2017-04-25 11:57:04 -04:00 committed by Tibor Vass
parent c67589a52c
commit 25809f8991
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ func runList(dockerCli *command.DockerCli, opts listOptions) error {
ctx := context.Background() ctx := context.Background()
client := dockerCli.Client() client := dockerCli.Client()
services, err := client.ServiceList(ctx, types.ServiceListOptions{}) serviceFilters := opts.filter.Value()
services, err := client.ServiceList(ctx, types.ServiceListOptions{Filters: serviceFilters})
if err != nil { if err != nil {
return err return err
} }