cleanups and small fix
This commit is contained in:
parent
240dc8b04a
commit
cb676249ac
2 changed files with 2 additions and 7 deletions
|
|
@ -64,7 +64,8 @@ class Job:
|
|||
|
||||
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) + ")")
|
||||
" Host: " + str(self.host) + " Service: " + str(self.service) + " " + str(self.job) + ") Enabled: " +
|
||||
str(self._enabled))
|
||||
return ret
|
||||
|
||||
def set_job(self, job):
|
||||
|
|
|
|||
|
|
@ -127,8 +127,6 @@ class HostgroupCommander(Exit, object):
|
|||
print("gives you control over a member of the hostgroup")
|
||||
|
||||
|
||||
|
||||
|
||||
class LishCommander(Exit, ShellCommander, LogCommander):
|
||||
def __init__(self, linspectorInterface):
|
||||
|
||||
|
|
@ -138,8 +136,6 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
|
||||
self.interface = linspectorInterface
|
||||
|
||||
|
||||
|
||||
def do_hostgroup(self, text):
|
||||
args = shsplit(text)
|
||||
|
||||
|
|
@ -189,8 +185,6 @@ class LishCommander(Exit, ShellCommander, LogCommander):
|
|||
"Service: " + job.service.get_type() + "\n" + \
|
||||
"Members: " + str([member.name for member in job.members])
|
||||
|
||||
|
||||
|
||||
def do_job(self, text):
|
||||
text = shsplit(text)
|
||||
job_hex = text[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue