mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9691: Fixed unhandeled excetion in list snapshot command when
a primary store is deleted related to it
This commit is contained in:
parent
6dced70aa8
commit
2fd28f2bff
|
|
@ -527,6 +527,9 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
|
||||
long storagePoolId = snapshotStore.getDataStoreId();
|
||||
DataStore dataStore = dataStoreMgr.getDataStore(storagePoolId, DataStoreRole.Primary);
|
||||
if (dataStore == null) {
|
||||
return DataStoreRole.Image;
|
||||
}
|
||||
|
||||
Map<String, String> mapCapabilities = dataStore.getDriver().getCapabilities();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue