fix: qcloud 5.5 single zone

This commit is contained in:
Qu Xuan
2020-10-23 18:55:16 +08:00
parent 9822abac3a
commit cdd652c1ee
+3
View File
@@ -758,6 +758,9 @@ func (self *SRegion) CreateMySQLDBInstance(opts *cloudprovider.SManagedDBInstanc
params["BackupZone"] = opts.Zone3
}
}
if opts.EngineVersion == "5.5" { // 5.5 不支持多可用区部署
params["DeployMode"] = "0"
}
params["ClientToken"] = utils.GenRequestId(20)
resp, err := self.cdbRequest(action, params)
if err != nil {