summaryrefslogtreecommitdiff
path: root/cmd/podman/networks/prune.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-17 12:47:18 +0100
committerGitHub <noreply@github.com>2022-01-17 12:47:18 +0100
commit26cf6c82c82cbf45afe5998e4a881b9f52202a01 (patch)
tree170843a2f0b612944ba592b60e5a76257afb1743 /cmd/podman/networks/prune.go
parentea2656dc8658f99a0e9be2342557763e974513b9 (diff)
parent6bca61e0f137a38543f7ce23abcd90e058d9defd (diff)
downloadpodman-26cf6c82c82cbf45afe5998e4a881b9f52202a01.tar.gz
podman-26cf6c82c82cbf45afe5998e4a881b9f52202a01.tar.bz2
podman-26cf6c82c82cbf45afe5998e4a881b9f52202a01.zip
Merge pull request #12882 from jmguzik/unify-filters-cmd
Unify the method of parsing filters in cmd
Diffstat (limited to 'cmd/podman/networks/prune.go')
-rw-r--r--cmd/podman/networks/prune.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/networks/prune.go b/cmd/podman/networks/prune.go
index 311d098cd..e113cd359 100644
--- a/cmd/podman/networks/prune.go
+++ b/cmd/podman/networks/prune.go
@@ -7,11 +7,11 @@ import (
"strings"
"github.com/containers/podman/v3/cmd/podman/common"
+ "github.com/containers/podman/v3/cmd/podman/parse"
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/utils"
"github.com/containers/podman/v3/cmd/podman/validate"
"github.com/containers/podman/v3/pkg/domain/entities"
- "github.com/containers/podman/v3/pkg/specgenutil"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
@@ -68,7 +68,7 @@ func networkPrune(cmd *cobra.Command, _ []string) error {
return nil
}
}
- networkPruneOptions.Filters, err = specgenutil.ParseFilters(filter)
+ networkPruneOptions.Filters, err = parse.FilterArgumentsIntoFilters(filter)
if err != nil {
return err
}