don't throw an error if a certs dir doesn't exist

pull/12035/head
Sharif Elgamal 2021-07-22 11:38:27 -07:00
parent cca438a21a
commit c744d3b72d
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ func collectCACerts() (map[string]string, error) {
for _, certsDir := range dirs {
err := filepath.Walk(certsDir, func(hostpath string, info os.FileInfo, err error) error {
if err != nil {
if os.IsNotExist(err) {
return nil
}
return err
}
if info == nil {