Skip to content

Commit d9f77b8

Browse files
Ignore non-managed pools for storage pool access preparation (#9376)
1 parent c71ab95 commit d9f77b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/main/java/com/cloud/storage/StorageManagerImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,14 +2788,10 @@ public boolean canHostAccessStoragePool(Host host, StoragePool pool) {
27882788

27892789
@Override
27902790
public boolean canHostPrepareStoragePoolAccess(Host host, StoragePool pool) {
2791-
if (host == null || pool == null) {
2791+
if (host == null || pool == null || !pool.isManaged()) {
27922792
return false;
27932793
}
27942794

2795-
if (!pool.isManaged()) {
2796-
return true;
2797-
}
2798-
27992795
DataStoreProvider storeProvider = _dataStoreProviderMgr.getDataStoreProvider(pool.getStorageProviderName());
28002796
DataStoreDriver storeDriver = storeProvider.getDataStoreDriver();
28012797
return storeDriver instanceof PrimaryDataStoreDriver && ((PrimaryDataStoreDriver)storeDriver).canHostPrepareStoragePoolAccess(host, pool);

0 commit comments

Comments
 (0)