From da7d04581dd0fd9712d4af2ea7aeaee03eeedf85 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 18 Aug 2015 19:39:10 +0200 Subject: [PATCH] Add missing attributes for dependent objects refs #9082 --- lib/remote/configobjectutility.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/remote/configobjectutility.cpp b/lib/remote/configobjectutility.cpp index 18b865b3c..a87cecf6f 100644 --- a/lib/remote/configobjectutility.cpp +++ b/lib/remote/configobjectutility.cpp @@ -130,8 +130,13 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full path += "/" + EscapeName(fullName) + ".conf"; + Dictionary::Ptr allAttrs = new Dictionary(); + attrs->CopyTo(allAttrs); + nameParts->CopyTo(allAttrs); + allAttrs->Remove("name"); + ConfigWriter::Ptr cw = new ConfigWriter(path); - cw->EmitConfigItem(type->GetName(), name, false, templates, attrs); + cw->EmitConfigItem(type->GetName(), name, false, templates, allAttrs); cw->EmitRaw("\n"); return true; -- 2.50.1