more eye candy in lish output of job details
This commit is contained in:
parent
c2275e8e63
commit
49bf87f254
2 changed files with 12 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue