mirror of https://github.com/apache/cloudstack.git
only send commands to host which is Up and Connecting
This commit is contained in:
parent
7115aa06bd
commit
39d30b9bf1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue