mirror of https://github.com/apache/cloudstack.git
added ping back
This commit is contained in:
parent
4ae9fa8ad4
commit
fce6b5fc87
|
|
@ -542,15 +542,13 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, ResourceS
|
|||
long id = server.getId();
|
||||
|
||||
AgentAttache attache = createAttache(id, server, resource);
|
||||
if (attache.isReady()) {
|
||||
StartupAnswer[] answers = new StartupAnswer[startup.length];
|
||||
for (int i = 0; i < answers.length; i++) {
|
||||
answers[i] = new StartupAnswer(startup[i], attache.getId(), _pingInterval);
|
||||
}
|
||||
|
||||
attache.process(answers);
|
||||
StartupAnswer[] answers = new StartupAnswer[startup.length];
|
||||
for (int i = 0; i < answers.length; i++) {
|
||||
answers[i] = new StartupAnswer(startup[i], attache.getId(), _pingInterval);
|
||||
}
|
||||
|
||||
attache.process(answers);
|
||||
|
||||
attache = notifyMonitorsOfConnection(attache, startup);
|
||||
|
||||
return attache;
|
||||
|
|
|
|||
Loading…
Reference in New Issue