From 339790adc4ab4932a39a5c8e0264565fd92f01bf Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 22 Sep 2015 10:00:33 +0300 Subject: [PATCH] Fix option descriptions in ansible-doc output Fixes #12462. --- lib/ansible/cli/doc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index e6457342f30..5864b73b503 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -255,10 +255,10 @@ class DocCLI(CLI): text.append("%s %s" % (opt_leadin, o)) - if isinstance(doc['description'], list): - desc = " ".join(doc['description']) + if isinstance(opt['description'], list): + desc = " ".join(opt['description']) else: - desc = doc['description'] + desc = opt['description'] if 'choices' in opt: choices = ", ".join(str(i) for i in opt['choices'])