cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [2/6] git commit: updated refs/heads/object_store to 1bd216f
Date Sun, 12 May 2013 04:06:26 GMT
Fix a bug in searching for existing image stores.

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3d91a4e0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3d91a4e0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3d91a4e0

Branch: refs/heads/object_store
Commit: 3d91a4e01201fce2126dae51bb52369a85b5e102
Parents: 8a9a7a4
Author: Min Chen <min.chen@citrix.com>
Authored: Sat May 11 18:18:12 2013 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Sat May 11 18:18:12 2013 -0700

----------------------------------------------------------------------
 .../src/com/cloud/storage/StorageManagerImpl.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3d91a4e0/server/src/com/cloud/storage/StorageManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java
index 11486ce..de63008 100755
--- a/server/src/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/com/cloud/storage/StorageManagerImpl.java
@@ -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");


Mime
View raw message