summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-02-19 15:09:19 +0100
committerValentin Rothberg <rothberg@redhat.com>2019-02-20 10:25:25 +0100
commit8a49b59ed403b25340f315b3cb9ea90482ad6cd9 (patch)
tree2f699c83822c5a484def487365cbafd630596e23 /cmd/podman
parent0d3eaca28a5485540feee02918abcd6f294e9a1d (diff)
downloadpodman-8a49b59ed403b25340f315b3cb9ea90482ad6cd9.tar.gz
podman-8a49b59ed403b25340f315b3cb9ea90482ad6cd9.tar.bz2
podman-8a49b59ed403b25340f315b3cb9ea90482ad6cd9.zip
image.SearchImages: use SearchFilter type
Use an `image.SearchFilter` instead of a `[]string` in the SearchImages API. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/search.go7
1 files changed, 6 insertions, 1 deletions
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 {