mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix: gcp rds 默认不使用vpc网络
This commit is contained in:
@@ -541,10 +541,6 @@ func (region *SRegion) CreateRds(name, databaseVersion, category, instanceType,
|
||||
"value": "0.0.0.0/0",
|
||||
},
|
||||
}
|
||||
if len(vpcId) > 0 {
|
||||
vpcId = strings.TrimPrefix(vpcId, region.GetGlobalId()+"/")
|
||||
ipConfiguration["privateNetwork"] = vpcId
|
||||
}
|
||||
settings["ipConfiguration"] = ipConfiguration
|
||||
body := map[string]interface{}{
|
||||
"databaseVersion": databaseVersion,
|
||||
|
||||
Reference in New Issue
Block a user