From: Gunnar Beutner Date: Thu, 8 May 2014 11:15:08 +0000 (+0200) Subject: Fix incorrect function name. X-Git-Tag: v0.0.11~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5678fe750cd171520b7a87d6682adb7d3907dd24;p=icinga2 Fix incorrect function name. Refs #6107 --- diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp index 22d0ec331..1c25a37d6 100644 --- a/lib/icinga/apievents.cpp +++ b/lib/icinga/apievents.cpp @@ -969,7 +969,7 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D String ApiEvents::GetVirtualHostName(const Host::Ptr& host) { - String host_name = GetVirtualHostName(host); + String host_name = host->GetName(); if (host_name == "localhost") host_name = Endpoint::GetLocalEndpoint()->GetName(); return host_name;