From 8a49b59ed403b25340f315b3cb9ea90482ad6cd9 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 19 Feb 2019 15:09:19 +0100 Subject: image.SearchImages: use SearchFilter type Use an `image.SearchFilter` instead of a `[]string` in the SearchImages API. Signed-off-by: Valentin Rothberg --- cmd/podman/search.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd/podman/search.go') diff --git a/cmd/podman/search.go b/cmd/podman/search.go index a772827a6..f63131c84 100644 --- a/cmd/podman/search.go +++ b/cmd/podman/search.go @@ -58,10 +58,15 @@ func searchCmd(c *cliconfig.SearchValues) error { } term := args[0] + filter, err := image.ParseSearchFilter(c.Filter) + if err != nil { + return err + } + searchOptions := image.SearchOptions{ NoTrunc: c.NoTrunc, Limit: c.Limit, - Filter: c.Filter, + Filter: *filter, Authfile: getAuthFile(c.Authfile), } if c.Flag("tls-verify").Changed { -- cgit v1.2.3-54-g00ecf