added hostgroup to Job
This commit is contained in:
parent
14ad51741e
commit
131ce1a75b
2 changed files with 8 additions and 6 deletions
|
|
@ -114,7 +114,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(), core)
|
||||
job = Job(service, host, hostgroup.get_members(), hostgroup.get_processors(), core, hostgroup)
|
||||
schedulerJob = period.createJob(scheduler, job, handleJob)
|
||||
if schedulerJob is not None:
|
||||
job.set_job(schedulerJob)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue