From 16f3f8e24445459e11a35d4ae83f796a69283f9e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 24 Aug 2015 13:24:58 -0400 Subject: [PATCH] now does not error out when notes are not included in module --- lib/ansible/cli/doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index dfdb8583ec3..4e5941850de 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -262,7 +262,7 @@ class DocCLI(CLI): text.append("%s\n" % textwrap.fill(CLI.tty_ify(desc), initial_indent=opt_indent, subsequent_indent=opt_indent)) - if 'notes' in doc and len(doc['notes']) > 0: + if 'notes' in doc and doc['notes'] and len(doc['notes']) > 0: notes = " ".join(doc['notes']) text.append("Notes:%s\n" % textwrap.fill(CLI.tty_ify(notes), initial_indent=" ", subsequent_indent=opt_indent))