fixed typo bug silently cought by apscheduler, added notes
This commit is contained in:
parent
f7c5cd65cc
commit
ea8eeaf8e5
3 changed files with 12 additions and 6 deletions
|
|
@ -1 +1,4 @@
|
|||
take "~" as expander to make a ./linspector dir
|
||||
|
||||
(using linspector.minimal)
|
||||
a host which doesn't define a service (seen in linspector.minimal), is at this point useless. It was intended that the host defines allowed services there. The warning that a hostgroup was defined for a host which has not such a service is supressed because host.services has no items to iterate over(hosts.py l64).Also a service like ping isn't defined anywhere... Not shure if this should be considered as config error or parsing error
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class DatePeriod(Period):
|
|||
return ret
|
||||
|
||||
def createJob(self, scheduler, jobInfo, func):
|
||||
return scheduler.add_date_job(func, self.date, [jobInfo])
|
||||
return scheduler.add_date_job(func, self.date, jobInfo)
|
||||
|
||||
|
||||
def parsePeriodList(periodlist, log):
|
||||
|
|
|
|||
|
|
@ -34,9 +34,12 @@ class JobInfo:
|
|||
return nextExecution
|
||||
|
||||
def handleCall(self):
|
||||
print "calling command " + str(service.command)
|
||||
cmd = Command(service.command)
|
||||
self.log.d("executing command: " + str(command))
|
||||
cmd.call()
|
||||
return cmd
|
||||
print "about to call command " + str(self.service.command)
|
||||
#must find real service command stored in hosts...
|
||||
#but because of error, mentioned in NOTES,ruff, there is no ping i.e.
|
||||
|
||||
#cmd = Command(service.command)
|
||||
#self.log.d("executing command: " + str(command))
|
||||
#cmd.call()
|
||||
#return cmd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue