mirror of https://github.com/apache/cloudstack.git
ensure agent reconciliation triggers events
(cherry picked from commit 0ba75bcebd)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
9bf2626e57
commit
1dc0611bcd
|
|
@ -145,7 +145,10 @@ public interface VirtualMachine extends RunningOn, ControlledEntity, Identity, I
|
|||
}
|
||||
|
||||
public static boolean isVmStopped(State oldState, Event e, State newState) {
|
||||
if (oldState == State.Stopping && newState == State.Stopped) {
|
||||
if ((oldState == State.Stopping && newState == State.Stopped) ||
|
||||
(oldState == State.Running &&
|
||||
newState == State.Stopped &&
|
||||
e == Event.FollowAgentPowerOffReport)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue