pretty job string function for lish, fixed logging
TODO: set Logging levels
This commit is contained in:
parent
157de0cbd4
commit
0bfb8ef3ae
4 changed files with 22 additions and 6 deletions
|
|
@ -164,7 +164,7 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
try:
|
||||
hgCommander = HostgroupCommander(hg)
|
||||
hgCommander.cmdloop("Entering Hostmode of " + hgName + ":\n")
|
||||
except KeyboardInterrupt, ke:
|
||||
except KeyboardInterrupt, key:
|
||||
pass
|
||||
|
||||
def do_python(self, text):
|
||||
|
|
@ -172,8 +172,8 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
|
||||
def do_jobs(self, text):
|
||||
if text == "list":
|
||||
for job in self._scheduler.get_jobs():
|
||||
print job
|
||||
for job in self._jobs:
|
||||
print job.pretty_string()
|
||||
|
||||
def help_jobs(self):
|
||||
print "Job helper functions"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue