summaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-26 20:05:56 -0400
committerGitHub <noreply@github.com>2021-04-26 20:05:56 -0400
commitbdcfdadb2f41af203293a662c2b1bf5e5514586e (patch)
treee3752f01fa010f0aae14ac6df9bca87f945afbfe /libpod/image
parent5070ae3bced99087e8d18ec1df994ebe4502cdd1 (diff)
parent8edadd4c7eed93eb80f6e7acfe83d40dbf034952 (diff)
downloadpodman-bdcfdadb2f41af203293a662c2b1bf5e5514586e.tar.gz
podman-bdcfdadb2f41af203293a662c2b1bf5e5514586e.tar.bz2
podman-bdcfdadb2f41af203293a662c2b1bf5e5514586e.zip
Merge pull request #10144 from jmguzik/fix-prune-until-filter-images
Fix images prune filter until
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/prune.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/prune.go b/libpod/image/prune.go
index 0e41fde44..e0480d3d1 100644
--- a/libpod/image/prune.go
+++ b/libpod/image/prune.go
@@ -30,7 +30,7 @@ func generatePruneFilterFuncs(filter, filterValue string) (ImageFilter, error) {
return nil, err
}
return func(i *Image) bool {
- if !until.IsZero() && i.Created().After((until)) {
+ if !until.IsZero() && i.Created().Before(until) {
return true
}
return false