mirror of https://github.com/apache/cloudstack.git
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:
parent
e5d222003c
commit
7575a03663
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue