one more fix about deletestoragepool

set uuid of storagepoolvo to null
This commit is contained in:
anthony 2010-10-15 14:20:27 -07:00
parent 1b477750e0
commit 173b30233d
1 changed files with 2 additions and 0 deletions

View File

@ -1314,6 +1314,8 @@ public class StorageManagerImpl implements StorageManager {
// if not records exist, delete the given pool (base case)
if (hostPoolRecords.size() == 0) {
sPool.setUuid(null);
_storagePoolDao.update(id, sPool);
_storagePoolDao.remove(id);
return true;
} else {