diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/GroupPatterns.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/GroupPatterns.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/GroupPatterns.py b/src/lib/Bcfg2/Server/Lint/GroupPatterns.py index f50118ce1..431ba4056 100644 --- a/src/lib/Bcfg2/Server/Lint/GroupPatterns.py +++ b/src/lib/Bcfg2/Server/Lint/GroupPatterns.py @@ -14,7 +14,8 @@ class GroupPatterns(Bcfg2.Server.Lint.ServerPlugin): self.check(entry, groups, ptype='NamePattern') self.check(entry, groups, ptype='NameRange') - def Errors(self): + @classmethod + def Errors(cls): return {"pattern-fails-to-initialize":"error"} def check(self, entry, groups, ptype="NamePattern"): |