diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-06-06 12:36:56 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-14 12:36:46 -0500 |
commit | 129aa6d584765fba5b0ff686d5d8da62b5ae405c (patch) | |
tree | 90156f52fb50ee2c1d2868187ac520cf3e66ad07 /src | |
parent | c55c7f92d4971eedd2e7eafa18e0cac424b637db (diff) | |
download | bcfg2-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.py | 2 | ||||
-rw-r--r-- | src/lib/Server/Lint/__init__.py | 3 |
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 |