summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Lint/__init__.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-14 13:30:06 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-05-14 13:30:06 -0400
commitd76a7373abe8e9413f30eeb2fbaf54d1d4136d39 (patch)
treeb4c9089a7d6dc6de30fc6d85b3ee2c6f69c75e04 /src/lib/Bcfg2/Server/Lint/__init__.py
parent26168362e761fc81273a4a7a4878b2df36273893 (diff)
downloadbcfg2-d76a7373abe8e9413f30eeb2fbaf54d1d4136d39.tar.gz
bcfg2-d76a7373abe8e9413f30eeb2fbaf54d1d4136d39.tar.bz2
bcfg2-d76a7373abe8e9413f30eeb2fbaf54d1d4136d39.zip
bcfg2-lint: fixed unit tests
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/__init__.py')
-rw-r--r--src/lib/Bcfg2/Server/Lint/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/__init__.py b/src/lib/Bcfg2/Server/Lint/__init__.py
index d06347cf6..390ec208f 100644
--- a/src/lib/Bcfg2/Server/Lint/__init__.py
+++ b/src/lib/Bcfg2/Server/Lint/__init__.py
@@ -9,6 +9,9 @@ import lxml.etree
import fcntl
import termios
import struct
+from Bcfg2.Compat import walk_packages
+
+plugins = [m[1] for m in walk_packages(path=__path__)]
def _ioctl_GWINSZ(fd): # pylint: disable=C0103
@@ -253,14 +256,14 @@ class ErrorHandler(object):
logfunc(line)
-class ServerlessPlugin(Plugin):
+class ServerlessPlugin(Plugin): # pylint: disable=W0223
""" Base class for bcfg2-lint plugins that are run before the
server starts up (i.e., plugins that check things that may prevent
the server from starting up). """
pass
-class ServerPlugin(Plugin):
+class ServerPlugin(Plugin): # pylint: disable=W0223
""" Base class for bcfg2-lint plugins that check things that
require the running Bcfg2 server. """