mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Ignore non-managed pools for storage pool access preparation (#9376)
This commit is contained in:
parent
c71ab9598e
commit
d9f77b841c
@ -2788,14 +2788,10 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
||||
|
||||
@Override
|
||||
public boolean canHostPrepareStoragePoolAccess(Host host, StoragePool pool) {
|
||||
if (host == null || pool == null) {
|
||||
if (host == null || pool == null || !pool.isManaged()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!pool.isManaged()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
DataStoreProvider storeProvider = _dataStoreProviderMgr.getDataStoreProvider(pool.getStorageProviderName());
|
||||
DataStoreDriver storeDriver = storeProvider.getDataStoreDriver();
|
||||
return storeDriver instanceof PrimaryDataStoreDriver && ((PrimaryDataStoreDriver)storeDriver).canHostPrepareStoragePoolAccess(host, pool);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user