mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: 简化公有云存储信息返回
This commit is contained in:
@@ -459,9 +459,11 @@ func getStorageTypes(
|
||||
notFound = true
|
||||
simpleStorage = &SimpleStorageInfo{Storages: []sStorage{}}
|
||||
}
|
||||
addStorageInfo(storage, simpleStorage)
|
||||
sfs[storageType] = simpleStorage
|
||||
hypervisorStorageInfos[storageHypervisor] = sfs
|
||||
if !utils.IsInStringArray(storageHypervisor, api.PUBLIC_CLOUD_HYPERVISORS) {
|
||||
addStorageInfo(storage, simpleStorage)
|
||||
sfs[storageType] = simpleStorage
|
||||
hypervisorStorageInfos[storageHypervisor] = sfs
|
||||
}
|
||||
return notFound
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user