mirror of https://github.com/Icinga/icinga2.git
parent
2db549d976
commit
cb6a4f1c76
|
@ -189,7 +189,6 @@ int RepositoryObjectCommand::Run(const boost::program_options::variables_map& vm
|
|||
attrs->Set("import", imports);
|
||||
}
|
||||
|
||||
|
||||
if (m_Command == RepositoryCommandAdd) {
|
||||
Utility::LoadExtensionLibrary("icinga");
|
||||
RepositoryUtility::AddObject(name, m_Type, attrs);
|
||||
|
|
|
@ -219,6 +219,7 @@ bool RepositoryUtility::AddObject(const String& name, const String& type, const
|
|||
Dictionary::Ptr vattrs = attrs->ShallowClone();
|
||||
vattrs->Set("__name", vattrs->Get("name"));
|
||||
vattrs->Remove("name");
|
||||
vattrs->Remove("import");
|
||||
vattrs->Set("type", type);
|
||||
|
||||
RepositoryTypeRuleUtilities utils;
|
||||
|
|
Loading…
Reference in New Issue