From d753a0c9cdd6de9d141f697cdfd49708cb787d96 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 29 Jan 2013 15:00:06 +0100 Subject: [PATCH] Bugfix: DowntimeProcessor::AddDowntime() should return new downtime ID. --- lib/icinga/downtimeprocessor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/downtimeprocessor.cpp b/lib/icinga/downtimeprocessor.cpp index ab9580f46..9e276e1f9 100644 --- a/lib/icinga/downtimeprocessor.cpp +++ b/lib/icinga/downtimeprocessor.cpp @@ -56,6 +56,8 @@ int DowntimeProcessor::AddDowntime(const DynamicObject::Ptr& owner, downtimes->Set(Convert::ToString(id), downtime); owner->Set("downtimes", downtimes); + + return id; } void DowntimeProcessor::RemoveDowntime(int id)