From d0e1a1c6c3ecc92499bb5a6376f926431de875e0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 27 Feb 2017 19:42:25 -0500 Subject: [PATCH] more compact metadata --- lib/ansible/cli/doc.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 1a5f0a23c92..e1b6d7b050e 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -271,11 +271,12 @@ class DocCLI(CLI): if doc['metadata'] and isinstance(doc['metadata'], dict): text.append("Metadata:") - for k in doc['metadata']: - if isinstance(k, list): - text.append("\t%s: %s\n" % (k.capitalize(), ", ".join(doc['metadata'][k]))) - else: - text.append("\t%s: %s\n" % (k.capitalize(), doc['metadata'][k])) + for k in doc['metadata']: + if isinstance(k, list): + text.append("\t%s: %s" % (k.capitalize(), ", ".join(doc['metadata'][k]))) + else: + text.append("\t%s: %s" % (k.capitalize(), doc['metadata'][k])) + text.append("") if 'action' in doc and doc['action']: text.append(" * note: %s\n" % "This module has a corresponding action plugin.")