adding the check for error state whilst stopping a vm; if stop is called on a vm in error state, just return

This commit is contained in:
abhishek 2010-12-06 11:03:19 -08:00
parent ee42699865
commit 82196754c2
2 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ public class MauriceMoss implements VmManager, ClusterManagerListener {
return true;
}
if (state == State.Creating || state == State.Destroyed || state == State.Expunging) {
if (state == State.Creating || state == State.Destroyed || state == State.Expunging || state == State.Error) {
s_logger.warn("Stopped called on " + vm.toString() + " but the state is " + state.toString());
return true;
}

View File

@ -2112,7 +2112,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, VirtualM
return true;
}
if (state == State.Creating || state == State.Destroyed || state == State.Expunging) {
if (state == State.Creating || state == State.Destroyed || state == State.Expunging || state == State.Error) {
s_logger.warn("Stopped called on " + vm.toString() + " but the state is " + state.toString());
return true;
}