mirror of https://github.com/apache/cloudstack.git
Merging 6065 into master
This commit is contained in:
parent
e7d4265500
commit
398e5774ae
|
|
@ -921,6 +921,9 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
// Mark the account's volumes as destroyed
|
||||
List<VolumeVO> volumes = _volumeDao.findDetachedByAccount(accountId);
|
||||
for (VolumeVO volume : volumes) {
|
||||
if(volume.getPoolId()==null){
|
||||
accountCleanupNeeded = true;
|
||||
}
|
||||
_storageMgr.destroyVolume(volume);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1006,6 +1006,9 @@ public class SnapshotManagerImpl implements SnapshotManager {
|
|||
// i.e Call them before the VMs for those volumes are destroyed.
|
||||
boolean success = true;
|
||||
for (VolumeVO volume : volumes) {
|
||||
if(volume.getPoolId()==null){
|
||||
continue;
|
||||
}
|
||||
Long volumeId = volume.getId();
|
||||
Long dcId = volume.getDataCenterId();
|
||||
String secondaryStoragePoolURL = _storageMgr.getSecondaryStorageURL(dcId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue