Merge pull request #8820 from tb365/bugfix/tb-qcloud-create-single-zone-elb-bugfix

qcloud create single zone elb bugfix
This commit is contained in:
yunion-ci-robot
2020-11-17 10:02:06 +08:00
committed by GitHub
+2
View File
@@ -152,6 +152,8 @@ func (self *SRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalanc
if len(loadbalancer.ZoneID) > 0 {
if len(loadbalancer.SlaveZoneID) > 0 {
params["MasterZoneId"] = loadbalancer.ZoneID
} else {
params["ZoneId"] = loadbalancer.ZoneID
}
}
}