add vulns to server

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-03-04 19:53:52 -08:00
parent eda57f98e3
commit c92a83c999
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -389,7 +389,7 @@ func createVulnStaticPage(r *registry.Registry, staticDir, clairURI, repo, tag s
}
path := filepath.Join(staticDir, repo, tag, "vulns.txt")
if err := os.MkdirAll(filepath.Dir(path, 0644)); err != nil {
if err := os.MkdirAll(filepath.Dir(path), 0644); err != nil {
return err
}
file, err := os.Create(path)