diff options
author | Jakub Guzik <jguzik@redhat.com> | 2022-01-16 00:23:17 +0100 |
---|---|---|
committer | Jakub Guzik <jguzik@redhat.com> | 2022-01-16 00:47:00 +0100 |
commit | 6bca61e0f137a38543f7ce23abcd90e058d9defd (patch) | |
tree | 0c3c2deafac4e94e8bfbaa93d0e3207d24064949 /cmd/podman/images/prune.go | |
parent | 3c9e41bb5393e0a857d8755bb50345544cc31b50 (diff) | |
download | podman-6bca61e0f137a38543f7ce23abcd90e058d9defd.tar.gz podman-6bca61e0f137a38543f7ce23abcd90e058d9defd.tar.bz2 podman-6bca61e0f137a38543f7ce23abcd90e058d9defd.zip |
Unify the method of parsing filters in cmd
This commit unifies the method of filters parsing in cmd.
It removes also the function redundancy.
[NO NEW TESTS NEEDED]
Signed-off-by: Jakub Guzik <jguzik@redhat.com>
Diffstat (limited to 'cmd/podman/images/prune.go')
-rw-r--r-- | cmd/podman/images/prune.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/prune.go b/cmd/podman/images/prune.go index fc7451c41..e4c320a55 100644 --- a/cmd/podman/images/prune.go +++ b/cmd/podman/images/prune.go @@ -8,11 +8,11 @@ import ( "github.com/containers/common/pkg/completion" "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" ) @@ -66,7 +66,7 @@ func prune(cmd *cobra.Command, args []string) error { return nil } } - filterMap, err := specgenutil.ParseFilters(filter) + filterMap, err := parse.FilterArgumentsIntoFilters(filter) if err != nil { return err } |