mirror of https://github.com/apache/cloudstack.git
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:
parent
ee42699865
commit
82196754c2
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue