Skip to content

Commit 8c58c5f

Browse files
committed
ExternalCommandProcessor::ExecuteFromFile(): take CheckResultProducer::Ptr
1 parent 096247d commit 8c58c5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/icinga/externalcommandprocessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void ExternalCommandProcessor::RegisterCommands()
247247
RegisterCommand("DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS", &ExternalCommandProcessor::DisableServicegroupSvcNotifications, 1);
248248
}
249249

250-
void ExternalCommandProcessor::ExecuteFromFile(const String& line, std::deque< std::vector<String> >& file_queue)
250+
void ExternalCommandProcessor::ExecuteFromFile(const CheckResultProducer::Ptr& producer, const String& line, std::deque<std::vector<String>>& file_queue)
251251
{
252252
if (line.IsEmpty())
253253
return;
@@ -280,7 +280,7 @@ void ExternalCommandProcessor::ExecuteFromFile(const String& line, std::deque< s
280280
<< "Enqueing external command file " << argvExtra[0];
281281
file_queue.push_back(argvExtra);
282282
} else {
283-
Execute(ts, argv[0], argvExtra);
283+
Execute(producer, ts, argv[0], argvExtra);
284284
}
285285
}
286286

lib/icinga/externalcommandprocessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ExternalCommandProcessor {
3333
private:
3434
ExternalCommandProcessor();
3535

36-
static void ExecuteFromFile(const String& line, std::deque< std::vector<String> >& file_queue);
36+
static void ExecuteFromFile(const CheckResultProducer::Ptr& producer, const String& line, std::deque<std::vector<String>>& file_queue);
3737

3838
static void ProcessHostCheckResult(const CheckResultProducer::Ptr& producer, double time, const std::vector<String>& arguments);
3939
static void ProcessServiceCheckResult(const CheckResultProducer::Ptr& producer, double time, const std::vector<String>& arguments);

0 commit comments

Comments
 (0)