mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix: admaster bug, disk-purge nil pointer error
This commit is contained in:
@@ -50,6 +50,8 @@ func (self *SDiskBaseTask) CleanHostSchedCache(disk *models.SDisk) {
|
||||
disk.GetStorage().ClearSchedDescCache()
|
||||
if len(disk.BackupStorageId) > 0 {
|
||||
bkStorage := models.StorageManager.FetchStorageById(disk.BackupStorageId)
|
||||
bkStorage.ClearSchedDescCache()
|
||||
if bkStorage != nil {
|
||||
bkStorage.ClearSchedDescCache()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user