mirror of https://github.com/Icinga/icinga2.git
parent
8e7957802e
commit
24b7089964
|
@ -233,6 +233,7 @@ bool RepositoryUtility::AddObject(const std::vector<String>& object_paths, const
|
||||||
if (check_config) {
|
if (check_config) {
|
||||||
try {
|
try {
|
||||||
ConfigObject::Ptr object = static_pointer_cast<ConfigObject>(utype->Instantiate());
|
ConfigObject::Ptr object = static_pointer_cast<ConfigObject>(utype->Instantiate());
|
||||||
|
attrs->Set("type", utype->GetName());
|
||||||
Deserialize(object, attrs, false, FAConfig);
|
Deserialize(object, attrs, false, FAConfig);
|
||||||
object->SetName(name);
|
object->SetName(name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue