aliyun backendgroup bugfix

This commit is contained in:
TangBin
2020-01-14 15:40:05 +08:00
parent 90a541b9bf
commit 5e599b180e
3 changed files with 4 additions and 1 deletions
@@ -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)
}
+1
View File
@@ -2,6 +2,7 @@ package aws
import (
"github.com/aws/aws-sdk-go/service/ec2"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
+1 -1
View File
@@ -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"