Merge pull request #12463 from mgedmin/fix-ansible-doc
Fix option descriptions in ansible-doc output
This commit is contained in:
commit
d2949f5449
1 changed files with 3 additions and 3 deletions
|
@ -255,10 +255,10 @@ class DocCLI(CLI):
|
||||||
|
|
||||||
text.append("%s %s" % (opt_leadin, o))
|
text.append("%s %s" % (opt_leadin, o))
|
||||||
|
|
||||||
if isinstance(doc['description'], list):
|
if isinstance(opt['description'], list):
|
||||||
desc = " ".join(doc['description'])
|
desc = " ".join(opt['description'])
|
||||||
else:
|
else:
|
||||||
desc = doc['description']
|
desc = opt['description']
|
||||||
|
|
||||||
if 'choices' in opt:
|
if 'choices' in opt:
|
||||||
choices = ", ".join(str(i) for i in opt['choices'])
|
choices = ", ".join(str(i) for i in opt['choices'])
|
||||||
|
|
Loading…
Reference in a new issue