summaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorJakub Guzik <jakubmguzik@gmail.com>2021-04-24 21:42:00 +0200
committerJakub Guzik <jakubmguzik@gmail.com>2021-04-26 22:51:33 +0200
commit8edadd4c7eed93eb80f6e7acfe83d40dbf034952 (patch)
treefa3cd1b6401c389cdfae61ceddec1cd0b21dde7a /libpod/image
parent476c76f580d5cd092ff958765af36857b2a68d6c (diff)
downloadpodman-8edadd4c7eed93eb80f6e7acfe83d40dbf034952.tar.gz
podman-8edadd4c7eed93eb80f6e7acfe83d40dbf034952.tar.bz2
podman-8edadd4c7eed93eb80f6e7acfe83d40dbf034952.zip
Fix images prune filter until
This commits fixes until filter. It is now checking if the created timestamp is before until filter value as expected in the docs. Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
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