check for error getting cert

This commit is contained in:
Tony Li 2017-02-03 17:24:24 -05:00
parent 40406b1480
commit 404e0712db

View file

@ -367,7 +367,10 @@ func (l *L7) checkSSLCert() (err error) {
if l.sslCert != nil { if l.sslCert != nil {
certName = l.sslCert.Name certName = l.sslCert.Name
} }
cert, _ := l.cloud.GetSslCertificate(certName) cert, err := l.cloud.GetSslCertificate(certName)
if err != nil {
return err
}
// PrivateKey is write only, so compare certs alone. We're assuming that // PrivateKey is write only, so compare certs alone. We're assuming that
// no one will change just the key. We can remember the key and compare, // no one will change just the key. We can remember the key and compare,