Set the right prams to send to ExecutedCommand

This commit is contained in:
Mattia Codato 2020-07-15 08:37:28 +02:00
parent 12da369ee1
commit 3f490ac0e2

View File

@ -165,8 +165,10 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
cr->SetExecutionEnd(pr.ExecutionEnd);
Dictionary::Ptr executedParams = new Dictionary();
params->CopyTo(executedParams);
executedParams->Set("execution", params->Get("source"));
executedParams->Set("host", params->Get("host"));
if (params->Contains("service"))
executedParams->Set("service", params->Get("service"));
executedParams->Set("check_result", Serialize(cr));
if (origin->IsLocal()) {