mirror of https://github.com/apache/cloudstack.git
Fix CLOUDSTACK-2062 NPE while deleting the primary storage[Added with scope=cluster]
This commit is contained in:
parent
167781ec01
commit
7cc82db345
|
|
@ -532,8 +532,7 @@ public class CloudStackPrimaryDataStoreLifeCycleImpl implements
|
|||
throw new CloudRuntimeException("Failed to delete storage pool on host");
|
||||
}
|
||||
|
||||
this.dataStoreHelper.deletePrimaryDataStore(store);
|
||||
return false;
|
||||
return this.dataStoreHelper.deletePrimaryDataStore(store);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -963,9 +963,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
DataStoreLifeCycle lifeCycle = storeProvider.getDataStoreLifeCycle();
|
||||
DataStore store = dataStoreMgr.getDataStore(
|
||||
sPool.getId(), DataStoreRole.Primary);
|
||||
lifeCycle.deleteDataStore(store);
|
||||
|
||||
return false;
|
||||
return lifeCycle.deleteDataStore(store);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue