This commit is contained in:
Mikaël Cluseau 2020-04-22 18:40:30 +02:00
parent 748a028161
commit a66d54d238
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ func (sd *SecretData) CA(cluster, name string) (ca *CA, err error) {
ca, ok := cs.CAs[name]
if ok {
checkErr := checkCertUsable(ca.Cert)
if checkErr == nil {
if checkErr != nil {
log.Infof("secret-data cluster %s: CA %s: regenerating certificate: %v", cluster, name, checkErr)
err = sd.RenewCACert(cluster, name)