From 075d1c93e7f4115427b9f0c0449a5ba88249ccd2 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 21 Oct 2013 03:02:58 +0200 Subject: [PATCH] more compact jobs list --- linspector/frontends/lish.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linspector/frontends/lish.py b/linspector/frontends/lish.py index 2c83a14..55a2446 100644 --- a/linspector/frontends/lish.py +++ b/linspector/frontends/lish.py @@ -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()