From 1253aa07e4ba08878de4c0c03b4ee2d935dd8774 Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Tue, 4 Aug 2020 14:32:36 +0200 Subject: [PATCH] Change checkable with the endpoint zone for execute command relay message --- lib/icinga/apiactions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 96961edac..cc85e7128 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -788,7 +788,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object, execMessage->Set("method", "event::ExecuteCommand"); execMessage->Set("params", execParams); - listener->RelayMessage(origin, checkable, execMessage, true); + listener->RelayMessage(origin, endpointPtr->GetZone(), execMessage, true); } Dictionary::Ptr result = new Dictionary();