mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-05 21:04:28 +02:00
Revert "NullCheckTask should return StateOK."
This reverts commit 046ea13cc814900b163f4f5765afb84d2f3f2b14.
This commit is contained in:
parent
b4ab6c8253
commit
5a724ba011
@ -45,7 +45,7 @@ Dictionary::Ptr NullCheckTask::ScriptFunc(const Service::Ptr&)
|
|||||||
Dictionary::Ptr cr = boost::make_shared<Dictionary>();
|
Dictionary::Ptr cr = boost::make_shared<Dictionary>();
|
||||||
cr->Set("output", output);
|
cr->Set("output", output);
|
||||||
cr->Set("performance_data_raw", perfdata);
|
cr->Set("performance_data_raw", perfdata);
|
||||||
cr->Set("state", StateOK);
|
cr->Set("state", static_cast<ServiceState>(Utility::Random() % 4));
|
||||||
|
|
||||||
return cr;
|
return cr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user