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:
abhishek 2011-02-04 14:00:37 -08:00
parent 37b5c860d2
commit 1f8c4864d6
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}