mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #193 in YUNIONIO/onecloud from ~QUXUAN/onecloud:bugfix/qx-storage-cached-image to release/2.1.0
* commit '063a7c1b00c691ff25223ff1d2f3755a4ae9ae5a': 避免storagecachedimage数据库操作时panic
This commit is contained in:
@@ -292,7 +292,7 @@ func (self *SCachedimage) ChooseSourceStoragecacheInRange(hostType string, exclu
|
||||
q = q.Filter(sqlchemy.Equals(host.Field("manager_id"), obj.Id))
|
||||
}
|
||||
}
|
||||
err := q.All(&scimgs)
|
||||
err := db.FetchModelObjects(StoragecachedimageManager, q, &scimgs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user