Fix cookie with ActivateItems

This commit is contained in:
Michael Friedrich 2019-08-13 16:09:26 +02:00
parent c30edd0a34
commit 7c1f716dad

View File

@ -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 << "'.";