mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
fix: avoid not found cdbro- mysql instance
This commit is contained in:
@@ -44,7 +44,7 @@ func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
|
||||
}
|
||||
|
||||
func (self *SRegion) GetIDBInstanceById(id string) (cloudprovider.ICloudDBInstance, error) {
|
||||
if strings.HasPrefix(id, "cdb-") {
|
||||
if strings.HasPrefix(id, "cdb") {
|
||||
return self.GetMySQLInstanceById(id)
|
||||
}
|
||||
return nil, cloudprovider.ErrNotFound
|
||||
|
||||
Reference in New Issue
Block a user