oops
This commit is contained in:
parent
748a028161
commit
a66d54d238
@ -253,7 +253,7 @@ func (sd *SecretData) CA(cluster, name string) (ca *CA, err error) {
|
|||||||
ca, ok := cs.CAs[name]
|
ca, ok := cs.CAs[name]
|
||||||
if ok {
|
if ok {
|
||||||
checkErr := checkCertUsable(ca.Cert)
|
checkErr := checkCertUsable(ca.Cert)
|
||||||
if checkErr == nil {
|
if checkErr != nil {
|
||||||
log.Infof("secret-data cluster %s: CA %s: regenerating certificate: %v", cluster, name, checkErr)
|
log.Infof("secret-data cluster %s: CA %s: regenerating certificate: %v", cluster, name, checkErr)
|
||||||
|
|
||||||
err = sd.RenewCACert(cluster, name)
|
err = sd.RenewCACert(cluster, name)
|
||||||
|
Loading…
Reference in New Issue
Block a user