only send commands to host which is Up and Connecting

This commit is contained in:
anthony 2010-10-14 11:35:48 -07:00
parent 7115aa06bd
commit 39d30b9bf1
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
try {
Host h = _hostDao.findById(hostId);
Status status = h.getStatus();
if( status.equals(Status.Up) || status.equals(Status.Connecting) ){
if( !status.equals(Status.Up) && !status.equals(Status.Connecting) ){
return null;
}
final Answer answer = send(hostId, cmd, timeout);