more compact jobs list
This commit is contained in:
parent
34c7e8f3e4
commit
075d1c93e7
1 changed files with 4 additions and 3 deletions
|
|
@ -170,9 +170,10 @@ class LishCommander(Exit):
|
|||
if text == "list":
|
||||
for job in self.interface.jobs:
|
||||
job_dict = self.interface.get_job_info_dict(job)
|
||||
print GREEN + job_dict["Job"] + END + ": Hostgroup: " + job_dict["Hostgroup"] + \
|
||||
": Host: " + job_dict["Host"] + ": Service: " + job_dict["Service"] + \
|
||||
": Next run: " + job_dict["Next run"] + ": Enabled: " + job_dict["Enabled"]
|
||||
print GREEN + job_dict["Job"] + END + ":\tHostgroup: " + job_dict["Hostgroup"] + \
|
||||
": Host: " + job_dict["Host"]
|
||||
print "\t\tService: " + job_dict["Service"]
|
||||
print "\t\tNext run: " + job_dict["Next run"] + ": Enabled: " + job_dict["Enabled"]
|
||||
else:
|
||||
self.print_color(RED, "Invalid or missing parameter")
|
||||
self.help_jobs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue