only send stop command when agent reports VM running and CS thinks it is stopped.

This commit is contained in:
Anthony Xu 2014-01-17 11:48:27 -08:00
parent 8a20d89d14
commit 58a9a9b0cd
1 changed files with 1 additions and 1 deletions

View File

@ -2750,7 +2750,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
s_logger.warn(e.getMessage());
}
}
} else if (serverState == State.Stopping) {
} else if (serverState == State.Stopped) {
s_logger.debug("Scheduling a stop command for " + vm);
_haMgr.scheduleStop(vm, hostId, WorkType.Stop);
} else {