From ae6d9ebf28ad6f843687093824d431be7254b94d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 14 Jul 2015 17:33:27 -0400 Subject: [PATCH] added maintainers (from author field) to ansible-doc --- lib/ansible/cli/doc.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 72ce3c1a5e..7215eb9ee1 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -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)