diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-04-20 11:59:53 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-04-20 12:00:19 -0400 |
commit | 07096c454d3a75a868f86ba8ce2f3678af934808 (patch) | |
tree | 902599e4e084f48569c96f120f8d48b6a7640470 /src/lib/Bcfg2/Server/Lint/Duplicates.py | |
parent | 74fe7cebd6f5024dbf336fd37f06644a4011dabe (diff) | |
download | bcfg2-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/Duplicates.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/Duplicates.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Duplicates.py b/src/lib/Bcfg2/Server/Lint/Duplicates.py index afddebb71..abc581c4f 100644 --- a/src/lib/Bcfg2/Server/Lint/Duplicates.py +++ b/src/lib/Bcfg2/Server/Lint/Duplicates.py @@ -22,6 +22,13 @@ class Duplicates(Bcfg2.Server.Lint.ServerPlugin): if self.clients_xdata is not None: self.duplicate_clients() + def Errors(self): + return {"broken-xinclude-chain":"warning", + "duplicate-client":"error", + "duplicate-group":"error", + "duplicate-package":"error", + "multiple-default-groups":"error"} + def load_xdata(self): """ attempt to load XML data for groups and clients. only actually load data if all documents reference in XIncludes can |