mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user