[icinga-checkins] icinga.org: icinga2/master: Ensure that UpdateConfigObject sets the target zone

git at icinga.org git at icinga.org
Thu Nov 10 17:15:31 CET 2016


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

Author: Michael Friedrich <michael.friedrich at icinga.com>
Date:   Thu Nov 10 17:15:06 2016 +0100

Ensure that UpdateConfigObject sets the target zone

refs #11684

---

 lib/remote/apilistener-configsync.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp
index beeedb8..2269354 100644
--- a/lib/remote/apilistener-configsync.cpp
+++ b/lib/remote/apilistener-configsync.cpp
@@ -347,7 +347,7 @@ void ApiListener::UpdateConfigObject(const ConfigObject::Ptr& object, const Mess
 		if (!target)
 			target = Zone::GetLocalZone();
 
-		RelayMessage(origin, object, message, false);
+		RelayMessage(origin, target, message, false);
 	}
 }
 



More information about the icinga-checkins mailing list