Ignore 'registry not found' when pushing on independent registries

This commit is contained in:
shin- 2013-05-29 11:25:49 -07:00
parent 1c817913ee
commit 2a1f8f6fda
1 changed files with 8 additions and 7 deletions

View File

@ -600,14 +600,15 @@ func (srv *Server) pushRepository(r *registry.Registry, out io.Writer, name, reg
Endpoints: []string{registryEp}, Endpoints: []string{registryEp},
} }
tagsList, err := srv.registry.GetRemoteTags(repoData.Endpoints, name, repoData.Tokens) tagsList, err := srv.registry.GetRemoteTags(repoData.Endpoints, name, repoData.Tokens)
if err != nil { if err != nil && err.Error() != "Repository not found" {
return err return err
} } else if err == nil {
for tag, id := range tagsList { for tag, id := range tagsList {
repoData.ImgList[id] = &registry.ImgData{ repoData.ImgList[id] = &registry.ImgData{
Id: id, Id: id,
Tag: tag, Tag: tag,
Checksum: "", Checksum: "",
}
} }
} }
} }