mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Fix bug of ping registry (#14625)
Fix bug of ping registry fixes #14610 Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
81a72c0435
commit
28d4e285f9
@ -219,7 +219,7 @@ func (r *registryAPI) PingRegistry(ctx context.Context, params operation.PingReg
|
||||
registry.Type = *params.Registry.Type
|
||||
}
|
||||
if params.Registry.URL != nil {
|
||||
url, err := lib.ValidateHTTPURL(registry.URL)
|
||||
url, err := lib.ValidateHTTPURL(*params.Registry.URL)
|
||||
if err != nil {
|
||||
return r.SendError(ctx, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user