summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Lint/RequiredAttrs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Lint/RequiredAttrs.py b/src/lib/Server/Lint/RequiredAttrs.py
index c021c2764..f11ad9217 100644
--- a/src/lib/Server/Lint/RequiredAttrs.py
+++ b/src/lib/Server/Lint/RequiredAttrs.py
@@ -120,7 +120,8 @@ class RequiredAttrs(Bcfg2.Server.Lint.ServerPlugin):
if '__text__' in required_attrs:
required_attrs.remove('__text__')
- if not entry.text:
+ if (not entry.text and
+ not entry.get('empty', 'false').lower() == 'true'):
self.LintError("required-attrs-missing",
"Text missing for %s %s in %s: %s" %
(entry.tag, name, filename,