only cleanup foo... just for fun... :)
This commit is contained in:
parent
5e1e06355c
commit
f480390cfa
1 changed files with 3 additions and 4 deletions
|
|
@ -4,12 +4,14 @@ execute.
|
||||||
"""
|
"""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
def generateId():
|
def generateId():
|
||||||
i = 0
|
i = 0
|
||||||
while True:
|
while True:
|
||||||
yield i
|
yield i
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|
||||||
class Job:
|
class Job:
|
||||||
def __init__(self, service):
|
def __init__(self, service):
|
||||||
self.service = service
|
self.service = service
|
||||||
|
|
@ -18,7 +20,6 @@ class Job:
|
||||||
for host in service.get_hostgroup().get_hosts():
|
for host in service.get_hostgroup().get_hosts():
|
||||||
self.hostThreshold[host] = service.get_threshold()
|
self.hostThreshold[host] = service.get_threshold()
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.__dict__)
|
return str(self.__dict__)
|
||||||
|
|
||||||
|
|
@ -59,5 +60,3 @@ class JobInfo:
|
||||||
|
|
||||||
def set_execution_successful(self, successful):
|
def set_execution_successful(self, successful):
|
||||||
self.executionSuccess = successful
|
self.executionSuccess = successful
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue