mirror of https://github.com/Icinga/icinga2.git
parent
854f8ec918
commit
b3db2ee1f6
|
@ -132,7 +132,10 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full
|
||||||
|
|
||||||
Dictionary::Ptr allAttrs = new Dictionary();
|
Dictionary::Ptr allAttrs = new Dictionary();
|
||||||
attrs->CopyTo(allAttrs);
|
attrs->CopyTo(allAttrs);
|
||||||
nameParts->CopyTo(allAttrs);
|
|
||||||
|
if (nameParts)
|
||||||
|
nameParts->CopyTo(allAttrs);
|
||||||
|
|
||||||
allAttrs->Remove("name");
|
allAttrs->Remove("name");
|
||||||
|
|
||||||
ConfigWriter::Ptr cw = new ConfigWriter(path);
|
ConfigWriter::Ptr cw = new ConfigWriter(path);
|
||||||
|
|
Loading…
Reference in New Issue