summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDivyansh Kamboj <kambojdivyansh2000@gmail.com>2019-05-20 21:15:47 +0530
committerDivyansh Kamboj <kambojdivyansh2000@gmail.com>2019-05-20 23:11:48 +0530
commitc6f7066e772b2ee761665cbff027c3b1906fd171 (patch)
tree2c47d68239de69aa06d0e3c25a5303ef30f05547 /cmd
parent18a953918e1d15aded713f9802865807bd25a1e0 (diff)
downloadpodman-c6f7066e772b2ee761665cbff027c3b1906fd171.tar.gz
podman-c6f7066e772b2ee761665cbff027c3b1906fd171.tar.bz2
podman-c6f7066e772b2ee761665cbff027c3b1906fd171.zip
Minor fix filtering images by label
Added test to avoid future regressions Fix #3163 Signed-off-by: Divyansh Kamboj <kambojdivyansh2000@gmail.com>
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 1c46571c3..3f755efc1 100644
--- a/cmd/podman/images.go
+++ b/cmd/podman/images.go
@@ -362,7 +362,7 @@ func CreateFilterFuncs(ctx context.Context, r *adapter.LocalRuntime, filters []s
var filterFuncs []imagefilters.ResultFilter
for _, filter := range filters {
splitFilter := strings.Split(filter, "=")
- if len(splitFilter) != 2 {
+ if len(splitFilter) < 2 {
return nil, errors.Errorf("invalid filter syntax %s", filter)
}
switch splitFilter[0] {