From 7c1f716dad8c959ef30944035ef9e2c296cadcb2 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 13 Aug 2019 16:09:26 +0200 Subject: [PATCH] Fix cookie with ActivateItems --- lib/remote/configobjectutility.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote/configobjectutility.cpp b/lib/remote/configobjectutility.cpp index 3ccb7b926..9b85e062b 100644 --- a/lib/remote/configobjectutility.cpp +++ b/lib/remote/configobjectutility.cpp @@ -212,9 +212,10 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full /* * Activate the config object. + * uq, items, runtimeCreated, silent, withModAttrs, cookie * IMPORTANT: Forward the cookie aka origin in order to prevent sync loops in the same zone! */ - if (!ConfigItem::ActivateItems(upq, newItems, true, true, cookie)) { + if (!ConfigItem::ActivateItems(upq, newItems, true, true, false, cookie)) { if (errors) { Log(LogNotice, "ConfigObjectUtility") << "Failed to activate config object '" << fullName << "'. Aborting and emoving config path '" << path << "'."; -- 2.40.0