mirror of https://github.com/apache/cloudstack.git
bug 8171: adding checks to ensure we do not start cp for any vm start unless we are out of maintenance
status 8171: resolved fixed
This commit is contained in:
parent
37b5c860d2
commit
1f8c4864d6
|
|
@ -438,6 +438,10 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx
|
|||
return proxy;
|
||||
}
|
||||
|
||||
String restart = _configDao.getValue(Config.ConsoleProxyRestart.key());
|
||||
if(restart != null && restart.equalsIgnoreCase("false"))
|
||||
return null;
|
||||
|
||||
if(proxy.getState() == VirtualMachine.State.Stopped) {
|
||||
return _itMgr.start(proxy, null, systemUser, systemAcct);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue