This is an automated email from the ASF dual-hosted git repository.

shwstppr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 256892b3f83 build: fix failure after forward merge
256892b3f83 is described below

commit 256892b3f8339b5a16a7fe0fb849a9df69e730ec
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Nov 3 17:26:38 2023 +0530

    build: fix failure after forward merge
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 .../src/main/java/com/cloud/agent/manager/AgentManagerImpl.java        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java
 
b/engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java
index 958ec9a8b23..023f9c18e0a 100644
--- 
a/engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java
+++ 
b/engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java
@@ -1408,8 +1408,7 @@ public class AgentManagerImpl extends ManagerBase 
implements AgentManager, Handl
                             // gateway was pingable
                             if (cmd instanceof PingRoutingCommand) {
                                 processPingRoutingCommand((PingRoutingCommand) 
cmd, hostId);
-                                final boolean gatewayAccessible = 
((PingRoutingCommand)cmd).isGatewayAccessible();
-                                final HostVO host = 
_hostDao.findById(Long.valueOf(cmdHostId));
+                                gatewayAccessible = 
((PingRoutingCommand)cmd).isGatewayAccessible();
 
                                 if (host != null) {
                                     if (!gatewayAccessible) {

Reply via email to