mirror of https://github.com/apache/cloudstack.git
bug 6139: A few more improvements to the sp code
This commit is contained in:
parent
d4bed852c8
commit
d92aea1d1f
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue