diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/__init__.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/__init__.py b/src/lib/Bcfg2/Server/Lint/__init__.py index f3991e3fc..5d7dd707b 100644 --- a/src/lib/Bcfg2/Server/Lint/__init__.py +++ b/src/lib/Bcfg2/Server/Lint/__init__.py @@ -63,7 +63,8 @@ class Plugin (object): """ run the plugin. must be overloaded by child classes """ pass - def Errors(self): + @classmethod + def Errors(cls): """ returns a dict of errors the plugin supplies. must be overloaded by child classes """ @@ -131,7 +132,6 @@ class ErrorHandler (object): else: self._handlers[err] = self.debug - def dispatch(self, err, msg): if err in self._handlers: self._handlers[err](msg) |