Replace API version comparison by a if…
… as we don't know for sure what API version it will be at that time. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: 0f9d22cd66353b3d14dd4a08084f88778fb69480 Component: engine
This commit is contained in:
@ -253,9 +253,9 @@ func (s *imageRouter) getImagesJSON(ctx context.Context, w http.ResponseWriter,
|
||||
return err
|
||||
}
|
||||
|
||||
version := httputils.VersionFromContext(ctx)
|
||||
filterParam := r.Form.Get("filter")
|
||||
if versions.LessThanOrEqualTo(version, "1.28") && filterParam != "" {
|
||||
// FIXME(vdemeester) This has been deprecated in 1.13, and is target for removal for v17.12
|
||||
if filterParam != "" {
|
||||
imageFilters.Add("reference", filterParam)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user