Merge pull request #224 from tonglil/check-error
Check for error getting cert
This commit is contained in:
commit
3f2592128c
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,9 @@ func (l *L7) checkSSLCert() (err error) {
|
||||||
if l.sslCert != nil {
|
if l.sslCert != nil {
|
||||||
certName = l.sslCert.Name
|
certName = l.sslCert.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip error checking because error-ing out will retry and loop, when we
|
||||||
|
// should create/update the cert if there is an error or does not exist.
|
||||||
cert, _ := l.cloud.GetSslCertificate(certName)
|
cert, _ := l.cloud.GetSslCertificate(certName)
|
||||||
|
|
||||||
// PrivateKey is write only, so compare certs alone. We're assuming that
|
// PrivateKey is write only, so compare certs alone. We're assuming that
|
||||||
|
|
Loading…
Reference in a new issue