]> granicus.if.org Git - icinga2/commitdiff
Bugfix: DowntimeProcessor::AddDowntime() should return new downtime ID.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 29 Jan 2013 14:00:06 +0000 (15:00 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Jan 2013 14:47:38 +0000 (15:47 +0100)
lib/icinga/downtimeprocessor.cpp

index ab9580f464a7543bed76a9d4bdeff82509dfa876..9e276e1f983034b168d6c1cb94e5e9c711d0cb3a 100644 (file)
@@ -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)