From f480390cfaaaf5e2d70d23c6b8fb7dec8e30fcb8 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Tue, 13 Aug 2013 22:48:51 +0200 Subject: [PATCH] only cleanup foo... just for fun... :) --- lib/core/job.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/job.py b/lib/core/job.py index e5b1699..7e913c2 100644 --- a/lib/core/job.py +++ b/lib/core/job.py @@ -4,12 +4,14 @@ execute. """ from datetime import datetime + def generateId(): i = 0 while True: yield i i += 1 + class Job: def __init__(self, service): self.service = service @@ -17,7 +19,6 @@ class Job: self.hostThreshold = {} for host in service.get_hostgroup().get_hosts(): self.hostThreshold[host] = service.get_threshold() - def __str__(self): return str(self.__dict__) @@ -58,6 +59,4 @@ class JobInfo: self.executionEnd = datetime.now() def set_execution_successful(self, successful): - self.executionSuccess = successful - - + self.executionSuccess = successful \ No newline at end of file