mirror of https://github.com/apache/cloudstack.git
only send command to host which is UP
This commit is contained in:
parent
146def1ded
commit
9b839d749b
|
|
@ -1318,6 +1318,10 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
|
|||
@Override
|
||||
public Answer easySend(final Long hostId, final Command cmd, int timeout) {
|
||||
try {
|
||||
Host h = _hostDao.findById(hostId);
|
||||
if( !h.getStatus().equals(Status.Up) ) {
|
||||
return null;
|
||||
}
|
||||
final Answer answer = send(hostId, cmd, timeout);
|
||||
if (answer == null) {
|
||||
s_logger.warn("send returns null answer");
|
||||
|
|
|
|||
Loading…
Reference in New Issue