upgrade update certificate process

This commit is contained in:
凡羊羊 2019-11-27 15:00:20 +08:00
parent fdcdd0cf90
commit d144ad2dd0

View File

@ -157,11 +157,6 @@ func (g *GatewayAction) UpdateHTTPRule(req *apimodel.UpdateHTTPRuleStruct) (stri
}
rule.CertificateID = req.CertificateID
} else {
// if certificateID is '' means do not need https cetificate any more, so delete Certificate
if err := g.dbmanager.CertificateDaoTransactions(tx).DeleteCertificateByID(rule.CertificateID); err != nil {
tx.Rollback()
return "", err
}
rule.CertificateID = ""
}
if len(req.RuleExtensions) > 0 {