diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2017-09-26 13:59:45 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2017-09-26 13:59:45 +0200 |
commit | a4efe66cf2a7648dbcf5b9993bf351925b905b5b (patch) | |
tree | 7c988a156920ab9f8734a1ef2a67521956f75d2b /client/image_search.go | |
parent | 97c5ae25c4d857563acd1f3467afc760145b1d55 (diff) | |
download | docker-a4efe66cf2a7648dbcf5b9993bf351925b905b5b.tar.gz |
Replace uses of filters.ToParam(), FromParam() with filters.ToJSON(), FromJSON()
`filters.ToParam()` and `filters.FromParam()` were deprecated in favor of
`filters.ToJSON()` and `filters.FromJSON()` in 065118390a3ecaf0dbd2fa752d54d43f8f1e8ec6,
but still used in various locations.
This patch replaces uses of `filters.ToParam()` and `filters.FromParam()` with
`filters.ToJSON()` and `filters.FromJSON()`.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'client/image_search.go')
-rw-r--r-- | client/image_search.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/image_search.go b/client/image_search.go index b0fcd5c23d..5566e92555 100644 --- a/client/image_search.go +++ b/client/image_search.go @@ -21,7 +21,7 @@ func (cli *Client) ImageSearch(ctx context.Context, term string, options types.I query.Set("limit", fmt.Sprintf("%d", options.Limit)) if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) + filterJSON, err := filters.ToJSON(options.Filters) if err != nil { return results, err } |