mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
APIv2 review corrections #3
The third pass of corrections for the APIv2. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -58,9 +58,9 @@ func (r *LocalRuntime) PrunePods(ctx context.Context, cli *cliconfig.PodPruneVal
|
||||
}
|
||||
logrus.Debugf("Setting maximum rm workers to %d", maxWorkers)
|
||||
|
||||
states := []string{shared.PodStateStopped, shared.PodStateExited}
|
||||
states := []string{define.PodStateStopped, define.PodStateExited}
|
||||
if cli.Force {
|
||||
states = append(states, shared.PodStateRunning)
|
||||
states = append(states, define.PodStateRunning)
|
||||
}
|
||||
|
||||
pods, err := r.GetPodsByStatus(states)
|
||||
|
Reference in New Issue
Block a user