Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Refresh all the repos
Browse files Browse the repository at this point in the history
Currently if config file have a bad repo and some right repos,
monocualr-api don't get charts from repos and no error message to
user. We should try all the repos.
  • Loading branch information
FengyunPan2 committed Jun 21, 2018
1 parent 03ac29c commit 661cc34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/data/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ func (c *cachedCharts) Refresh() error {
for _, repo := range repos {
charts, err := repohelper.GetChartsFromRepoIndexFile(repo)
if err != nil {
return err
log.WithFields(log.Fields{
"repo": repo,
"error": err,
}).Error("Error on refresh charts from repo")
continue
}

// 3 - Process elements in index
Expand Down

0 comments on commit 661cc34

Please sign in to comment.