mirror of https://github.com/apache/cloudstack.git
A minor fix to take into account stopping of a vm in stopping state. We will get a concurrentmodificationexception, and end in errorinmaintenance. This behavior is consistent with how stop works for cpvm.
This commit is contained in:
parent
109846f605
commit
eec9f5f6f6
|
|
@ -2188,7 +2188,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
}
|
||||
|
||||
//shut down the running vms
|
||||
if(vmInstance.getState().equals(State.Running) || vmInstance.getState().equals(State.Starting))
|
||||
if(vmInstance.getState().equals(State.Running) || vmInstance.getState().equals(State.Starting) || vmInstance.getState().equals(State.Stopping))
|
||||
{
|
||||
|
||||
//if the instance is of type consoleproxy, call the console proxy
|
||||
|
|
|
|||
Loading…
Reference in New Issue