sureshanaparti commented on code in PR #10417:
URL: https://github.com/apache/cloudstack/pull/10417#discussion_r1987146675


##########
agent/src/main/java/com/cloud/agent/Agent.java:
##########
@@ -1003,9 +1010,12 @@ public void processResponse(final Response response, 
final Link link) {
             for (final IAgentControlListener listener : controlListeners) {
                 listener.processControlResponse(response, 
(AgentControlAnswer)answer);
             }
-        } else if (answer instanceof PingAnswer && (((PingAnswer) 
answer).isSendStartup()) && reconnectAllowed) {
-            logger.info("Management server requested startup command to 
reinitialize the agent");
-            sendStartup(link);
+        } else if (answer instanceof PingAnswer) {
+            if ((((PingAnswer) answer).isSendStartup()) && reconnectAllowed) {
+                logger.info("Management server requested startup command to 
reinitialize the agent");
+                sendStartup(link);
+            }
+            shell.setAvoidHosts(((PingAnswer) answer).getAvoidMsList());

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to