more eye candy in lish output of job details

This commit is contained in:
Johannes Findeisen 2013-10-19 20:47:19 +02:00
commit 49bf87f254
2 changed files with 12 additions and 7 deletions

View file

@ -63,8 +63,8 @@ class Job:
self.log = log
def pretty_string(self):
ret = (self.hex_string() + ": (Hostgroup: " + str(self.hostgroup.get_name()) +
" Host: " + str(self.host) + " Service: " + str(self.service) + " " + str(self.job) + ") Enabled: " +
ret = (self.hex_string() + ": Hostgroup: " + str(self.hostgroup.get_name()) +
" Host: " + str(self.host) + " Service: " + str(self.service) + " " + str(self.job) + " Enabled: " +
str(self._enabled))
return ret
@ -74,7 +74,6 @@ class Job:
def set_enabled(self, enabled=True):
self._enabled = enabled
def handle_threshold(self, jobInfo, serviceThreshold, executionSucessful):
if executionSucessful:
if self.jobThreshold > 0: