优化代码/创建服务的时候可以保存SSL证书信息

This commit is contained in:
刘祥超
2020-12-18 21:18:35 +08:00
parent 563315c218
commit d6ad7f399d
31 changed files with 212 additions and 117 deletions

View File

@@ -174,7 +174,7 @@ func (this *UpdateAction) RunPost(params struct {
if sslPolicyId == 0 {
if len(certIds) > 0 {
sslPolicyCreateResp, err := this.RPC().SSLPolicyRPC().CreateSSLPolicy(this.AdminContext(), &pb.CreateSSLPolicyRequest{
CertsJSON: certRefsJSON,
SslCertsJSON: certRefsJSON,
})
if err != nil {
this.ErrorPage(err)
@@ -184,8 +184,8 @@ func (this *UpdateAction) RunPost(params struct {
}
} else {
_, err = this.RPC().SSLPolicyRPC().UpdateSSLPolicy(this.AdminContext(), &pb.UpdateSSLPolicyRequest{
SslPolicyId: sslPolicyId,
CertsJSON: certRefsJSON,
SslPolicyId: sslPolicyId,
SslCertsJSON: certRefsJSON,
})
if err != nil {
this.ErrorPage(err)