summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Lint/Validate.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/Validate.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/Validate.py')
-rw-r--r--src/lib/Bcfg2/Server/Lint/Validate.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Validate.py b/src/lib/Bcfg2/Server/Lint/Validate.py
index 012d65894..812ab3d00 100644
--- a/src/lib/Bcfg2/Server/Lint/Validate.py
+++ b/src/lib/Bcfg2/Server/Lint/Validate.py
@@ -63,6 +63,15 @@ class Validate(Bcfg2.Server.Lint.ServerlessPlugin):
self.check_properties()
+ def Errors(self):
+ return {"broken-xinclude-chain":"warning",
+ "schema-failed-to-parse":"warning",
+ "properties-schema-not-found":"warning",
+ "xml-failed-to-parse":"error",
+ "xml-failed-to-read":"error",
+ "xml-failed-to-verify":"error",
+ "input-output-error":"error"}
+
def check_properties(self):
""" check Properties files against their schemas """
for filename in self.filelists['props']: