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
|
|
@ -181,10 +181,16 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
print "executes python using 'exec'."
|
||||
|
||||
def print_jobs_infos(self, job):
|
||||
print "Job: " + job.hex_string() + "\n" + \
|
||||
"Host: " + job.host + "\n" + \
|
||||
"Service: " + job.service.get_type() + "\n" + \
|
||||
"Members: " + str([member.name for member in job.members])
|
||||
#TODO: fix the output for "interval" and "next run"
|
||||
print "Job:\t\t" + job.hex_string() + "\n" + \
|
||||
"Hostgroup:\t" + job.hostgroup.get_name() + "\n" + \
|
||||
"Host:\t\t" + job.host + "\n" + \
|
||||
"Service:\t" + str(job.service) + "\n" + \
|
||||
"Members:\t" + str([member.name for member in job.members]) + "\n" + \
|
||||
"Interval:\t" + str(job.job) + "\n" + \
|
||||
"Next run:\t" + str(job.job) + "\n" + \
|
||||
"Enabled:\t" + str(job._enabled) + "\n" + \
|
||||
"Fails:\t\t" + str(job.jobThreshold)
|
||||
|
||||
def do_job(self, text):
|
||||
text = shsplit(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue