bug 10834: fix step 2. Sending command to pool now only picks hosts that are in UP state

This commit is contained in:
Kelven Yang 2011-07-27 18:11:04 -07:00
parent 1381c58fa1
commit 9d4aebd7e3
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
templateStoragePoolRefId = templateStoragePoolRef.getId();
}
List<StoragePoolHostVO> vos = _poolHostDao.listByPoolId(poolId);
List<StoragePoolHostVO> vos = _poolHostDao.listByHostStatus(poolId, com.cloud.host.Status.Up);
templateStoragePoolRef = _tmpltPoolDao.acquireInLockTable(templateStoragePoolRefId, 1200);
if (templateStoragePoolRef == null) {