mirror of
https://github.com/containers/podman.git
synced 2025-10-29 08:57:26 +08:00
Make search --no-trunc work for podman remote
The HTTP API for image search was still lacking support of the NoTrunc parameter. Signed-off-by: Ralf Haferkamp <rhafer@suse.com>
This commit is contained in:
@ -638,6 +638,7 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
|
||||
query := struct {
|
||||
Term string `json:"term"`
|
||||
Limit int `json:"limit"`
|
||||
NoTrunc bool `json:"noTrunc"`
|
||||
Filters []string `json:"filters"`
|
||||
TLSVerify bool `json:"tlsVerify"`
|
||||
}{
|
||||
@ -650,7 +651,8 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
options := image.SearchOptions{
|
||||
Limit: query.Limit,
|
||||
Limit: query.Limit,
|
||||
NoTrunc: query.NoTrunc,
|
||||
}
|
||||
if _, found := r.URL.Query()["tlsVerify"]; found {
|
||||
options.InsecureSkipTLSVerify = types.NewOptionalBool(!query.TLSVerify)
|
||||
|
||||
Reference in New Issue
Block a user