From 2cda17a99bb09ea86808fa3b7c50f616928d5d09 Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Wed, 29 Jul 2020 08:45:19 +0200 Subject: [PATCH] Remove pending key when the execution is completed --- lib/icinga/clusterevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/clusterevents.cpp b/lib/icinga/clusterevents.cpp index 4d8783a39..44bb6bc6a 100644 --- a/lib/icinga/clusterevents.cpp +++ b/lib/icinga/clusterevents.cpp @@ -1025,7 +1025,7 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin, if (params->Contains("end")) execution->Set("end", params->Get("end")); - execution->Set("pending", false); + execution->Remove("pending"); /* Broadcast the update */ Dictionary::Ptr executionsToBroadcast = new Dictionary();