bug 10768: root cause is StopCommand is not sent out in force stop,

status 10768: resolved fixed
This commit is contained in:
anthony 2011-07-20 12:09:13 -07:00
parent 1f4d34b9d5
commit d48e97a368
1 changed files with 1 additions and 1 deletions

View File

@ -946,7 +946,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(vm);
if ((vm.getState() == State.Starting || vm.getState() == State.Stopping || vm.getState() == State.Migrating) && forced) {
ItWorkVO work = _workDao.findByOutstandingWork(vm.getId(), vm.getState());
if (work != null) {
if (work == null) {
if (cleanup(vmGuru, new VirtualMachineProfileImpl<T>(vm), work, Event.StopRequested, forced, user, account)) {
try {
return stateTransitTo(vm, Event.AgentReportStopped, null);