build: fix failure after forward merge

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2023-11-03 17:26:38 +05:30
parent 8fa8cefb5b
commit 256892b3f8
1 changed files with 1 additions and 2 deletions

View File

@ -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) {