mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +08:00
upgrade update certificate process
This commit is contained in:
parent
fdcdd0cf90
commit
d144ad2dd0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user