From d380b55d2372de77b99fc2f5091da57dcb9429db Mon Sep 17 00:00:00 2001 From: anthony Date: Tue, 17 May 2011 16:10:11 -0700 Subject: [PATCH] multiple secondary storage fix --- server/src/com/cloud/resource/ResourceManagerImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/com/cloud/resource/ResourceManagerImpl.java b/server/src/com/cloud/resource/ResourceManagerImpl.java index e0c257d6bde..eea194bbc52 100644 --- a/server/src/com/cloud/resource/ResourceManagerImpl.java +++ b/server/src/com/cloud/resource/ResourceManagerImpl.java @@ -403,11 +403,6 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma } } - // Deny to add a secondary storage multiple times for the same zone - if ((username == null) && (_hostDao.findSecondaryStorageHost(dcId) != null)) { - throw new InvalidParameterValueException("A secondary storage host already exists in the specified zone"); - } - // Verify cluster information and create a new cluster if needed if (clusterName != null && clusterId != null) { throw new InvalidParameterValueException("Can't specify cluster by both id and name");