summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-06-06 12:36:56 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-06-14 12:36:46 -0500
commit129aa6d584765fba5b0ff686d5d8da62b5ae405c (patch)
tree90156f52fb50ee2c1d2868187ac520cf3e66ad07 /src
parentc55c7f92d4971eedd2e7eafa18e0cac424b637db (diff)
downloadbcfg2-129aa6d584765fba5b0ff686d5d8da62b5ae405c.tar.gz
bcfg2-129aa6d584765fba5b0ff686d5d8da62b5ae405c.tar.bz2
bcfg2-129aa6d584765fba5b0ff686d5d8da62b5ae405c.zip
Validate: Create and use new error type for missing schemas
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Lint/Validate.py2
-rw-r--r--src/lib/Server/Lint/__init__.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Lint/Validate.py b/src/lib/Server/Lint/Validate.py
index a561232b6..8a8406e73 100644
--- a/src/lib/Server/Lint/Validate.py
+++ b/src/lib/Server/Lint/Validate.py
@@ -51,7 +51,7 @@ class Validate(Bcfg2.Server.Lint.ServerlessPlugin):
schemadir))
except IOError:
e = sys.exc_info()[1]
- self.LintError("input/output error", e.message)
+ self.LintError("input-output-error", e.message)
continue
except:
self.LintError("schema-failed-to-parse",
diff --git a/src/lib/Server/Lint/__init__.py b/src/lib/Server/Lint/__init__.py
index 013cbf2ba..63cb2463b 100644
--- a/src/lib/Server/Lint/__init__.py
+++ b/src/lib/Server/Lint/__init__.py
@@ -88,7 +88,8 @@ class ErrorHandler (object):
"xml-failed-to-read":"error",
"xml-failed-to-verify":"error",
"merge-cfg":"warning",
- "merge-probes":"warning",}
+ "merge-probes":"warning",
+ "input-output-error": "error"}
def __init__(self, config=None):
self.errors = 0