[icinga-checkins] icinga.org: icinga2/master: Bugfix: DowntimeProcessor::AddDowntime() should return new downtime ID.

git at icinga.org git at icinga.org
Tue Jan 29 15:01:09 CET 2013


Module: icinga2
Branch: master
Commit: 2c0a2d9df45b121ec5b2dcd22b7136f042438fa5
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=2c0a2d9df45b121ec5b2dcd22b7136f042438fa5

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Jan 29 15:00:06 2013 +0100

Bugfix: DowntimeProcessor::AddDowntime() should return new downtime ID.

---

 lib/icinga/downtimeprocessor.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/icinga/downtimeprocessor.cpp b/lib/icinga/downtimeprocessor.cpp
index ab9580f..9e276e1 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)





More information about the icinga-checkins mailing list