Merge pull request #224 from tonglil/check-error

Check for error getting cert
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-25 08:12:25 -03:00 committed by GitHub
commit 3f2592128c

View file

@ -367,6 +367,9 @@ func (l *L7) checkSSLCert() (err error) {
if l.sslCert != nil {
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)
// PrivateKey is write only, so compare certs alone. We're assuming that