Skip to content

Commit 901d533

Browse files
committed
test: fix several simulator CI failures
1 parent badf3e1 commit 901d533

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,9 +1230,11 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
12301230
}
12311231
}
12321232
DataStoreProvider storeProvider = dataStoreProviderManager.getDataStoreProvider(pool.getStorageProviderName());
1233-
DataStoreDriver storeDriver = storeProvider.getDataStoreDriver();
1234-
if (storeDriver instanceof PrimaryDataStoreDriver) {
1235-
((PrimaryDataStoreDriver)storeDriver).detachVolumeFromAllStorageNodes(vol);
1233+
if (storeProvider != null) {
1234+
DataStoreDriver storeDriver = storeProvider.getDataStoreDriver();
1235+
if (storeDriver instanceof PrimaryDataStoreDriver) {
1236+
((PrimaryDataStoreDriver)storeDriver).detachVolumeFromAllStorageNodes(vol);
1237+
}
12361238
}
12371239
}
12381240
}

0 commit comments

Comments
 (0)