CLOUDSTACK-4040: [Object_store_refactor] System VMs are not spinning up

if S3 storage configuration is not part of zone creation wizard.
This commit is contained in:
Min Chen 2013-08-02 17:59:24 -07:00
parent 151a7ee497
commit 8ff2061db7
1 changed files with 3 additions and 1 deletions

View File

@ -2411,7 +2411,9 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
sc.addAnd(sc.getEntity().getDataCenterId(), Op.EQ, zoneId);
}
if (hostId != null) {
sc.addAnd(sc.getEntity().getId(), Op.EQ, hostId);
// exclude the given host, since we want to check what hypervisor is already handled
// in adding this new host
sc.addAnd(sc.getEntity().getId(), Op.NEQ, hostId);
}
sc.addAnd(sc.getEntity().getType(), Op.EQ, Host.Type.Routing);
List<HostVO> hosts = sc.list();