added maintainers (from author field) to ansible-doc

pull/11595/head
Brian Coca 10 years ago
parent fbec8bfb90
commit ae6d9ebf28

@ -285,4 +285,12 @@ class DocCLI(CLI):
text.append(doc['returndocs'])
text.append('')
if isinstance(doc['author'], basestring):
maintainers = [doc['author']]
else:
maintainers = doc['author']
text.append('MAINTAINERS: ' + ', '.join(maintainers))
text.append('')
return "\n".join(text)

Loading…
Cancel
Save