diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp index d55b1fa86..a26c52948 100644 --- a/lib/icinga/apievents.cpp +++ b/lib/icinga/apievents.cpp @@ -1530,14 +1530,6 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D if (vrepository.IsEmpty() || !vrepository.IsObjectType()) return Empty; - Dictionary::Ptr repository = vrepository; - Value hostInfo = repository->Get("localhost"); - - if (!hostInfo.IsEmpty() && origin.FromZone) { - repository->Remove("localhost"); - repository->Set(origin.FromZone->GetName(), hostInfo); - } - String repositoryFile = GetRepositoryDir() + SHA256(params->Get("endpoint")) + ".repo"; String repositoryTempFile = repositoryFile + ".tmp";