mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
aliyun backendgroup bugfix
This commit is contained in:
@@ -256,8 +256,10 @@ func (region *SRegion) constructBaseCreateListenerParams(lb *SLoadbalancer, list
|
||||
switch listener.BackendGroupType {
|
||||
case api.LB_BACKENDGROUP_TYPE_NORMAL:
|
||||
params["VServerGroupId"] = listener.BackendGroupID
|
||||
params["VServerGroup"] = "on"
|
||||
case api.LB_BACKENDGROUP_TYPE_MASTER_SLAVE:
|
||||
params["MasterSlaveServerGroupId"] = listener.BackendGroupID
|
||||
params["MasterSlaveServerGroup"] = "on"
|
||||
case api.LB_BACKENDGROUP_TYPE_DEFAULT:
|
||||
params["BackendServerPort"] = fmt.Sprintf("%d", listener.BackendServerPort)
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package aws
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/service/ec2"
|
||||
|
||||
"yunion.io/x/jsonutils"
|
||||
"yunion.io/x/pkg/errors"
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/aws/aws-sdk-go/service/ec2"
|
||||
"yunion.io/x/pkg/errors"
|
||||
|
||||
"yunion.io/x/jsonutils"
|
||||
"yunion.io/x/log"
|
||||
"yunion.io/x/pkg/errors"
|
||||
"yunion.io/x/pkg/util/secrules"
|
||||
|
||||
api "yunion.io/x/onecloud/pkg/apis/compute"
|
||||
|
||||
Reference in New Issue
Block a user