Fixed incorrect Service::GetByName call.

This commit is contained in:
Gunnar Beutner 2013-02-09 02:16:02 +01:00
parent 0faffeb873
commit 06999e40e9
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ void ExternalCommandProcessor::RemoveSvcAcknowledgement(double, const vector<Str
if (arguments.size() < 2)
BOOST_THROW_EXCEPTION(invalid_argument("Expected 2 arguments."));
Service::Ptr service = Service::GetByName(arguments[1]);
Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]);
Logger::Write(LogInformation, "icinga", "Removing acknowledgement for service '" + service->GetName() + "'");
service->SetAcknowledgement(AcknowledgementNone);