diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-21 21:00:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 21:00:16 -0400 |
commit | 2cd2359a6d9ba4135495dc9be616bb1edebb170d (patch) | |
tree | 97fc6e19db7e79683b242958b038c528eb451533 /libpod/image/search.go | |
parent | 2bd920b00540280696d19dc95ab6e562aebd6b7d (diff) | |
parent | 33366a2cda518fafed0e72cf6e53b55abfa3c5e5 (diff) | |
download | podman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.tar.gz podman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.tar.bz2 podman-2cd2359a6d9ba4135495dc9be616bb1edebb170d.zip |
Merge pull request #7772 from TomSweeneyRedHat/dev/tsweeney/splitn
Convert Split() calls with an equal sign to SplitN()
Diffstat (limited to 'libpod/image/search.go')
-rw-r--r-- | libpod/image/search.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/search.go b/libpod/image/search.go index 5f5845989..b9acf4a20 100644 --- a/libpod/image/search.go +++ b/libpod/image/search.go @@ -263,7 +263,7 @@ func searchRepositoryTags(registry, term string, sc *types.SystemContext, option func ParseSearchFilter(filter []string) (*SearchFilter, error) { sFilter := new(SearchFilter) for _, f := range filter { - arr := strings.Split(f, "=") + arr := strings.SplitN(f, "=", 2) switch arr[0] { case "stars": if len(arr) < 2 { |