From: Gunnar Beutner Date: Tue, 21 Jul 2015 09:45:17 +0000 (+0200) Subject: Fix incorrect filename in ApiListener::SyncZoneDir X-Git-Tag: v2.4.0~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1a95e33401f0bfbf022acda69870dc8bd06d2a7;p=icinga2 Fix incorrect filename in ApiListener::SyncZoneDir refs #9083 --- diff --git a/lib/remote/apilistener-sync.cpp b/lib/remote/apilistener-sync.cpp index 7bca5731c..34df3f70f 100644 --- a/lib/remote/apilistener-sync.cpp +++ b/lib/remote/apilistener-sync.cpp @@ -128,7 +128,7 @@ void ApiListener::SyncZoneDir(const Zone::Ptr& zone) const ObjectLock olock(newConfigPart); BOOST_FOREACH(const Dictionary::Pair& kv, newConfigPart) { - newConfig->Set(zf.Tag + "/" + kv.first, kv.second); + newConfig->Set("/" + zf.Tag + kv.first, kv.second); } }