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-06 12:36:56 -0500
commit95797b788dc180b240e0c1c17f2559fbb4600b5b (patch)
treee7350dbe14d9242ed7aea1cbb605271d83637991 /src
parent701ff48cc9561ce88e80c1de5a19f8d6cda790bb (diff)
downloadbcfg2-95797b788dc180b240e0c1c17f2559fbb4600b5b.tar.gz
bcfg2-95797b788dc180b240e0c1c17f2559fbb4600b5b.tar.bz2
bcfg2-95797b788dc180b240e0c1c17f2559fbb4600b5b.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