Fix return type for PluginCheckTask::ScriptFunc.

This commit is contained in:
Gunnar Beutner 2013-03-25 19:58:34 +00:00
parent 70e96aa2f0
commit 5d73b69342
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ using namespace icinga;
REGISTER_SCRIPTFUNCTION(PluginCheck, &PluginCheckTask::ScriptFunc); REGISTER_SCRIPTFUNCTION(PluginCheck, &PluginCheckTask::ScriptFunc);
Value PluginCheckTask::ScriptFunc(const Service::Ptr& service) Dictionary::Ptr PluginCheckTask::ScriptFunc(const Service::Ptr& service)
{ {
Value raw_command = service->GetCheckCommand(); Value raw_command = service->GetCheckCommand();

View File

@ -34,7 +34,7 @@ namespace icinga
class I2_ICINGA_API PluginCheckTask class I2_ICINGA_API PluginCheckTask
{ {
public: public:
static Value ScriptFunc(const Service::Ptr& service); static Dictionary::Ptr ScriptFunc(const Service::Ptr& service);
static ServiceState ExitStatusToState(int exitStatus); static ServiceState ExitStatusToState(int exitStatus);
static Dictionary::Ptr ParseCheckOutput(const String& output); static Dictionary::Ptr ParseCheckOutput(const String& output);