added maintainers (from author field) to ansible-doc

This commit is contained in:
Brian Coca 2015-07-14 17:33:27 -04:00
parent fbec8bfb90
commit ae6d9ebf28

View file

@ -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)