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 be0d688511
commit b52e8028e9
1 changed files with 1 additions and 1 deletions

View File

@ -2824,7 +2824,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 {