added core config to jobs and tasks and made use of core variables raw in the tasks

This commit is contained in:
Johannes Findeisen 2013-09-20 01:23:50 +02:00
commit 0bfa4b3daa
5 changed files with 23 additions and 21 deletions

View file

@ -67,7 +67,7 @@ def main():
for service in hostgroup.get_services():
for host in hostgroup.get_hosts():
for period in service.get_periods():
job = Job(service, host, hostgroup.get_members(), hostgroup.get_processors())
job = Job(service, host, hostgroup.get_members(), hostgroup.get_processors(), core)
schedulerJob = period.createJob(scheduler, job, handleJob)
if schedulerJob is not None:
job.set_job(schedulerJob)