summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Lint/Deltas.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-04-20 11:59:53 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-04-20 12:00:19 -0400
commit07096c454d3a75a868f86ba8ce2f3678af934808 (patch)
tree902599e4e084f48569c96f120f8d48b6a7640470 /src/lib/Bcfg2/Server/Lint/Deltas.py
parent74fe7cebd6f5024dbf336fd37f06644a4011dabe (diff)
downloadbcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.tar.gz
bcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.tar.bz2
bcfg2-07096c454d3a75a868f86ba8ce2f3678af934808.zip
changed the way bcfg2-lint errors are loaded to make it easier to write and use custom plugins
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/Deltas.py')
-rw-r--r--src/lib/Bcfg2/Server/Lint/Deltas.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Deltas.py b/src/lib/Bcfg2/Server/Lint/Deltas.py
index cf91d1d13..8d35d8e5a 100644
--- a/src/lib/Bcfg2/Server/Lint/Deltas.py
+++ b/src/lib/Bcfg2/Server/Lint/Deltas.py
@@ -2,7 +2,6 @@ import Bcfg2.Server.Lint
class Deltas(Bcfg2.Server.Lint.ServerPlugin):
""" Warn about usage of .cat and .diff files """
-
def Run(self):
""" run plugin """
if 'Cfg' in self.core.plugins:
@@ -10,6 +9,10 @@ class Deltas(Bcfg2.Server.Lint.ServerPlugin):
for basename, entry in list(cfg.entries.items()):
self.check_entry(basename, entry)
+ def Errors(self):
+ return {"cat-file-used":"warning",
+ "diff-file-used":"warning"}
+
def check_entry(self, basename, entry):
for fname in list(entry.entries.keys()):
if self.HandlesFile(fname):