summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-12 15:49:08 -0400
committerGitHub <noreply@github.com>2020-03-12 15:49:08 -0400
commitac6c8fb6836d4830199f4504724767b275feea42 (patch)
treed9afa9fbda038a8cea16522ae50737450703c451 /cmd
parent9c7481dbd1e6ea7e20ee03c85d4710c42ba81c6e (diff)
parent3aa58ccd0a622d539b24df2d8fd68fe0b0d6d208 (diff)
downloadpodman-ac6c8fb6836d4830199f4504724767b275feea42.tar.gz
podman-ac6c8fb6836d4830199f4504724767b275feea42.tar.bz2
podman-ac6c8fb6836d4830199f4504724767b275feea42.zip
Merge pull request #5482 from baude/removeimagefilter
remove imagefilter for varlink remote client
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go
index de61690ae..41790a5aa 100644
--- a/cmd/podman/images.go
+++ b/cmd/podman/images.go
@@ -155,7 +155,7 @@ func imagesCmd(c *cliconfig.ImagesValues) error {
return errors.New("can not specify an image and a filter")
}
filters := c.Filter
- if len(filters) < 1 {
+ if len(filters) < 1 && len(image) > 0 {
filters = append(filters, fmt.Sprintf("reference=%s", image))
}