Remove comment when clearing acknowledgement.

Fixes #5366
This commit is contained in:
Michael Friedrich 2014-03-13 16:43:32 +01:00
parent 74209bde40
commit 2f7881736e

View File

@ -666,8 +666,12 @@ void ExternalCommandProcessor::RemoveSvcAcknowledgement(double, const std::vecto
Log(LogInformation, "icinga", "Removing acknowledgement for service '" + service->GetName() + "'");
ObjectLock olock(service);
service->ClearAcknowledgement();
{
ObjectLock olock(service);
service->ClearAcknowledgement();
}
service->RemoveCommentsByType(CommentAcknowledgement);
}
void ExternalCommandProcessor::AcknowledgeHostProblem(double, const std::vector<String>& arguments)