bug 6139: A few more improvements to the sp code

This commit is contained in:
abhishek 2010-09-08 13:46:48 -07:00
parent d4bed852c8
commit d92aea1d1f
1 changed files with 1 additions and 1 deletions

View File

@ -1364,7 +1364,7 @@ public class StorageManagerImpl implements StorageManager {
}
List<StoragePoolVO> pools = _storagePoolDao.listPoolByHostPath(storageHost, hostPath);
if (!pools.isEmpty() && pools.get(0).getRemoved()==null) {
if (!pools.isEmpty()) {
Long oldPodId = pools.get(0).getPodId();
throw new ResourceInUseException("Storage pool " + uri + " already in use by another pod (id=" + oldPodId + ")", "StoragePool", uri.toASCIIString());
}