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