mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix a bug in searching for existing image stores.
This commit is contained in:
parent
8a9a7a4adc
commit
3d91a4e012
@ -1879,7 +1879,7 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
||||
|
||||
// check if we have already image stores from other different providers, we currently are not supporting image stores from different
|
||||
// providers co-existing
|
||||
List<ImageStoreVO> imageStores = _imageStoreDao.listAll();
|
||||
List<ImageStoreVO> imageStores = _imageStoreDao.listImageStores();
|
||||
for ( ImageStoreVO store : imageStores){
|
||||
if (!store.getProviderName().equalsIgnoreCase(providerName)){
|
||||
throw new InvalidParameterValueException("You can only add new image stores from the same provider " + store.getProviderName() + " already added");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user