qcloud create single zone elb bugfix

This commit is contained in:
TangBin
2020-11-16 15:12:21 +08:00
parent 2a54a139dc
commit 63eddd2194
+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
}
}
}