summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 92e6392ae..48ff91987 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -183,10 +183,10 @@ class Plugin(ReadOnly):
'%s.%s' % (b.__module__, b.__name__) for b in cls.__bases__
)
self.doc = _(cls.__doc__)
- if self.doc is None:
+ if not self.doc.msg:
self.summary = '<%s>' % self.fullname
else:
- self.summary = unicode(self.doc).split('\n\n', 1)[0]
+ self.summary = unicode(self.doc).split('\n\n', 1)[0].strip()
log = logging.getLogger(self.fullname)
for name in ('debug', 'info', 'warning', 'error', 'critical', 'exception'):
if hasattr(self, name):