mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #11783 from ioito/hotfix/qx-mongodb-fix
fix(region): mongodb sync fix
This commit is contained in:
@@ -252,6 +252,14 @@ func (self *SRegion) GetMongoDBsByType(mongoType string) ([]SMongoDB, error) {
|
||||
return dbs, nil
|
||||
}
|
||||
|
||||
func (self *SRegion) GetICloudMongoDBById(id string) (cloudprovider.ICloudMongoDB, error) {
|
||||
db, err := self.GetMongoDB(id)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "GetMongoDB(%s)", id)
|
||||
}
|
||||
return db, nil
|
||||
}
|
||||
|
||||
func (self *SRegion) GetICloudMongoDBs() ([]cloudprovider.ICloudMongoDB, error) {
|
||||
dbs := []SMongoDB{}
|
||||
for _, mongoType := range []string{"sharding", "replicate", "serverless"} {
|
||||
|
||||
Reference in New Issue
Block a user