mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
Enable prune integration test. Fixes container prune.
Fixes container prune to prune created and configured containers. Disables couple of system prune test as not yet in with v2. Signed-off-by: Sujil02 <sushah@redhat.com>
This commit is contained in:
@ -869,7 +869,8 @@ func (r *Runtime) PruneContainers(filterFuncs []ContainerFilter) (map[string]int
|
||||
logrus.Error(err)
|
||||
return false
|
||||
}
|
||||
if state == define.ContainerStateStopped || state == define.ContainerStateExited {
|
||||
if state == define.ContainerStateStopped || state == define.ContainerStateExited ||
|
||||
state == define.ContainerStateCreated || state == define.ContainerStateConfigured {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user