mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
more cleanup work
This commit is contained in:
parent
c0fb9be02a
commit
28137b805b
@ -658,14 +658,12 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager {
|
||||
} finally {
|
||||
if (startedVm == null) {
|
||||
_workDao.updateStep(work, Step.Release);
|
||||
_networkMgr.release(vmProfile, false);
|
||||
_storageMgr.release(vmProfile);
|
||||
cleanup(vmGuru, vmProfile, work, false, caller, account);
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
if (startedVm == null) {
|
||||
// FIXME: Cleanup.
|
||||
changeState(vm, Event.OperationFailed, null, work, Step.Done);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user