Remove localhost virtual name thingie from apievents.cpp

refs #7467
This commit is contained in:
Gunnar Beutner 2014-10-28 14:44:55 +01:00
parent f477115398
commit 2d6c3e8d5b
1 changed files with 0 additions and 8 deletions

View File

@ -1530,14 +1530,6 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D
if (vrepository.IsEmpty() || !vrepository.IsObjectType<Dictionary>())
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";