mirror of https://github.com/harness/drone.git
fix: [AH-387]: root not found error - replace with the right method (#2735)
* fix: [AH-387]: root not found error - lint error * fix: [AH-387]: root not found error - replace with the right methodpull/3560/head
parent
31c8fa62f0
commit
115050d4dd
|
@ -186,7 +186,7 @@ func (h *Handler) getRegistryInfo(r *http.Request, remoteSupport bool) (pkg.Regi
|
|||
return pkg.RegistryInfo{}, err
|
||||
}
|
||||
|
||||
rootSpace, err := h.SpaceStore.FindByRef(ctx, rootIdentifier)
|
||||
rootSpace, err := h.SpaceStore.FindByRefCaseInsensitive(ctx, rootIdentifier)
|
||||
if err != nil {
|
||||
log.Ctx(ctx).Error().Msgf("Root space not found: %s", rootIdentifier)
|
||||
return pkg.RegistryInfo{}, errcode.ErrCodeRootNotFound
|
||||
|
|
Loading…
Reference in New Issue