just small typo fixes.

This commit is contained in:
Johannes Findeisen 2013-08-18 03:08:09 +02:00
commit b092df118e
2 changed files with 9 additions and 15 deletions

View file

@ -3,7 +3,7 @@ Just the frontends.py stub... ;)
If linspector is being started without a frontend "enabled" it just is doing stuff like: polling, alerting, logging etc. If linspector is being started without a frontend "enabled" it just is doing stuff like: polling, alerting, logging etc.
Frontends a absolutely no requirement for running Linspector. Frontends are absolutely no requirement for running Linspector.
""" """

View file

@ -1,12 +1,14 @@
""" """
The Linspector Interactive Shell... Lish is the Linspector Interactive Shell...
This will become an interface to Linspector at "start" time. Think about MidnightCommander... and then run This will become an interface to Linspector at "start" time. Think about MidnightCommander... and then run
Linspector in a screen session and not as daemon, why not? BTW.: Daemonization is at this point of development Linspector in a screen session and not as daemon, why not? BTW.: Daemonization is at this point of development
cancelled, because it makes no sense to daemonize everything. Linspector is a user software which will run in any cancelled, because it makes no sense to daemonize everything. Linspector is a user software which will run in any
screen session perfectly. screen session perfectly.
""" """
from requests.status_codes import title
# what is this?
#from requests.status_codes import title
''' '''
#see http://docs.python.org/dev/library/argparse.html #see http://docs.python.org/dev/library/argparse.html
@ -45,12 +47,14 @@ from requests.status_codes import title
''' '''
from lib.frontends.frontend import Frontend from lib.frontends.frontend import Frontend
import argparse, os import argparse
import os
from shlex import split as shsplit from shlex import split as shsplit
from cmd import Cmd from cmd import Cmd
VERSION = "0.1" VERSION = "0.1"
class LishFrontend(Frontend): class LishFrontend(Frontend):
def __init__(self, **kwargs): def __init__(self, **kwargs):
@ -116,8 +120,6 @@ class HostgroupCommander(Exit, object):
print("gives you control over a member of the hostgroup") print("gives you control over a member of the hostgroup")
class LishCommander(Exit, ShellCommander): class LishCommander(Exit, ShellCommander):
def __init__(self, kwargs): def __init__(self, kwargs):
@ -157,8 +159,6 @@ class LishCommander(Exit, ShellCommander):
except KeyboardInterrupt, ke: except KeyboardInterrupt, ke:
pass pass
def help_hostgroup(self): def help_hostgroup(self):
print ''' print '''
help for Hostgroup help for Hostgroup
@ -168,9 +168,3 @@ class LishCommander(Exit, ShellCommander):
"hostgroup + ' '" "hostgroup + ' '"
if begidx == 10: if begidx == 10:
return [x for x in self._hostgroupArgs if x.startswith(text)] if len(text) > 0 else self._hostgroupArgs return [x for x in self._hostgroupArgs if x.startswith(text)] if len(text) > 0 else self._hostgroupArgs