Expand hostname before passing it to NewRegistry()
Signed-off-by: Daniel Menet <membership@sontags.ch>
This commit is contained in:
parent
d768343cbe
commit
94c52da6c0
@ -86,6 +86,10 @@ func (s *Service) Search(job *engine.Job) engine.Status {
|
||||
if err != nil {
|
||||
return job.Error(err)
|
||||
}
|
||||
hostname, err = ExpandAndVerifyRegistryUrl(hostname)
|
||||
if err != nil {
|
||||
return job.Error(err)
|
||||
}
|
||||
r, err := NewRegistry(authConfig, HTTPRequestFactory(metaHeaders), hostname, true)
|
||||
if err != nil {
|
||||
return job.Error(err)
|
||||
|
Loading…
Reference in New Issue
Block a user