made job id's unique

This commit is contained in:
Johannes Findeisen 2013-10-20 01:55:19 +02:00
commit ff6fbf8507
2 changed files with 5 additions and 22 deletions

View file

@ -47,7 +47,7 @@ class Job:
return str(self.__dict__)
def __hex__(self):
return hex(crc32(str(self.hostgroup) + str(self.host) + str(self.service) + str(self.members)))
return hex(crc32(str(self.hostgroup) + str(self.host) + str(self.service)))
def hex_string(self):
ret = self.__hex__()
@ -120,8 +120,6 @@ class Job:
self.log.debug("Job " + self.hex_string() + " disabled")
class JobInfo(object):
def __init__(self, jobHex, host, service):
self.id = generateId()