mirror of https://github.com/apache/cloudstack.git
Bug 9273 : resource counts going -ve
pushing 2.2.4 fix in to master
This commit is contained in:
parent
e0ba2a2fa6
commit
9bf2d32884
|
|
@ -728,8 +728,10 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
}
|
||||
}
|
||||
} finally {
|
||||
if (startedVm == null) {
|
||||
_accountMgr.decrementResourceCount(vm.getAccountId(), ResourceType.user_vm);
|
||||
if (startedVm == null) {
|
||||
if(vm.getType().equals(VirtualMachine.Type.User)) {
|
||||
_accountMgr.decrementResourceCount(vm.getAccountId(), ResourceType.user_vm);
|
||||
}
|
||||
changeState(vm, Event.OperationFailed, null, work, Step.Done);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue