]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect function name.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 8 May 2014 11:15:08 +0000 (13:15 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 8 May 2014 11:15:08 +0000 (13:15 +0200)
Refs #6107

lib/icinga/apievents.cpp

index 22d0ec33103a42434514eb4739b3b4e9d232e4e4..1c25a37d6d22661c1ebd87bdd2d46e7012ab4d38 100644 (file)
@@ -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;