executing real job, but error handling still won't work

This commit is contained in:
Rafael.Timmerberg 2013-05-29 23:39:16 +02:00
commit a1e95212d5
2 changed files with 25 additions and 8 deletions

View file

@ -42,8 +42,15 @@ class JobInfo:
def handleCall(self):
self.log.d("handle call")
self.log.d(self.hostServices)
for hs in self.hostServices:
log.d(str(hs))
try:
for hs in self.hostServices:
self.log.d(str(hs))
cmd=Command(hs.service.command, self.log)
cmd.call()
log.d(cmd.getOutputOrError())
except Error:
self.log.d(Error)
#must find real service command stored in hosts...