diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-17 12:47:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 12:47:18 +0100 |
commit | 26cf6c82c82cbf45afe5998e4a881b9f52202a01 (patch) | |
tree | 170843a2f0b612944ba592b60e5a76257afb1743 /pkg | |
parent | ea2656dc8658f99a0e9be2342557763e974513b9 (diff) | |
parent | 6bca61e0f137a38543f7ce23abcd90e058d9defd (diff) | |
download | podman-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 'pkg')
-rw-r--r-- | pkg/specgenutil/util.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/specgenutil/util.go b/pkg/specgenutil/util.go index 9389a98a5..0a980a576 100644 --- a/pkg/specgenutil/util.go +++ b/pkg/specgenutil/util.go @@ -38,21 +38,6 @@ func ReadPodIDFiles(files []string) ([]string, error) { return ids, nil } -// ParseFilters transforms one filter format to another and validates input -func ParseFilters(filter []string) (map[string][]string, error) { - // TODO Remove once filter refactor is finished and url.Values done. - filters := map[string][]string{} - for _, f := range filter { - t := strings.SplitN(f, "=", 2) - filters = make(map[string][]string) - if len(t) < 2 { - return map[string][]string{}, errors.Errorf("filter input must be in the form of filter=value: %s is invalid", f) - } - filters[t[0]] = append(filters[t[0]], t[1]) - } - return filters, nil -} - // CreateExpose parses user-provided exposed port definitions and converts them // into SpecGen format. // TODO: The SpecGen format should really handle ranges more sanely - we could |