mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
warn on failure to create vuln page
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
c92a83c999
commit
62a9ca937c
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ func createStaticIndex(r *registry.Registry, staticDir, clairURI string) error {
|
||||||
|
|
||||||
if clairURI != "" {
|
if clairURI != "" {
|
||||||
if err := createVulnStaticPage(r, staticDir, clairURI, repo, tag); err != nil {
|
if err := createVulnStaticPage(r, staticDir, clairURI, repo, tag); err != nil {
|
||||||
return fmt.Errorf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
|
//return fmt.Errorf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
|
||||||
|
logrus.Warnf("creating vuln static page for %s:%s failed: %v", repo, tag, err)
|
||||||
}
|
}
|
||||||
newrepo.VulnURI = filepath.Join(repo, tag, "vulns.txt")
|
newrepo.VulnURI = filepath.Join(repo, tag, "vulns.txt")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue