Expand hostname before passing it to NewRegistry()

Signed-off-by: Daniel Menet <membership@sontags.ch>
This commit is contained in:
Daniel Menet 2014-08-10 11:48:34 +02:00
parent d768343cbe
commit 94c52da6c0

View file

@ -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)