mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Cleaned up test code.
This commit is contained in:
parent
31407fd07f
commit
ee0ee227da
@ -96,9 +96,7 @@ int IcingaApplication::Main(const vector<string>& args)
|
|||||||
ConfigObject::TMap::Range range = ConfigObject::GetObjects("service");
|
ConfigObject::TMap::Range range = ConfigObject::GetObjects("service");
|
||||||
|
|
||||||
for (ConfigObject::TMap::Iterator it = range.first; it != range.second; it++) {
|
for (ConfigObject::TMap::Iterator it = range.first; it != range.second; it++) {
|
||||||
ConfigObject::Ptr obj = it->second;
|
Service svc(it->second);
|
||||||
|
|
||||||
Service svc = Service(obj);
|
|
||||||
CheckTask::Ptr ct = CheckTask::CreateTask(svc);
|
CheckTask::Ptr ct = CheckTask::CreateTask(svc);
|
||||||
CheckResult cr = ct->Execute();
|
CheckResult cr = ct->Execute();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user