bug 6861: we were setting the account cleanup flag incorrectly, even for a vol which was never attached to a vm. Fixing the same

status 6861: resolved fixed
This commit is contained in:
abhishek 2010-11-16 16:11:55 -08:00
parent e5d222003c
commit 7575a03663
1 changed files with 3 additions and 3 deletions

View File

@ -842,9 +842,9 @@ public class AccountManagerImpl implements AccountManager, AccountService {
// Mark the account's volumes as destroyed
List<VolumeVO> volumes = _volumeDao.findDetachedByAccount(accountId);
for (VolumeVO volume : volumes) {
if(volume.getPoolId()==null){
accountCleanupNeeded = true;
}
// if(volume.getPoolId()==null){
// accountCleanupNeeded = true;
// }
_storageMgr.destroyVolume(volume);
}