diff options
author | Jordan Christiansen <xordspar0@gmail.com> | 2020-09-23 14:58:33 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-09-25 11:06:32 -0400 |
commit | 3be6c483c6d7ca36d16f0b312bc8c897160ab7a0 (patch) | |
tree | 41b82c9f3f59791d1f25a8a17210957ee1fa629d /libpod/oci_util.go | |
parent | c06dfe4ea666535ace8c46abfb7443a738099339 (diff) | |
download | podman-3be6c483c6d7ca36d16f0b312bc8c897160ab7a0.tar.gz podman-3be6c483c6d7ca36d16f0b312bc8c897160ab7a0.tar.bz2 podman-3be6c483c6d7ca36d16f0b312bc8c897160ab7a0.zip |
Allow filtering on pod label values
Before this change, filters of the form `podman pod ps --filter
label=app=myapp` were not working. The results would include all pods
that contained the app label with any value. Looking at the code, this
makes sense. It appears that the second = and everything after it were
getting truncated.
Even though there was already a passing test that tested `podman pod ps
--filter label=io.podman.test.label=value1`, the test failed with the
above example with a label `app=myapp`. The new code works in both
cases.
Signed-off-by: Jordan Christiansen <xordspar0@gmail.com>
Diffstat (limited to 'libpod/oci_util.go')
0 files changed, 0 insertions, 0 deletions