Do not show empty version_added_collection values in ansible-doc text output. (#74999)
This commit is contained in:
parent
77e936bd50
commit
58450f041a
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "ansible-doc - in text output, do not show empty ``version_added_collection`` values (https://github.com/ansible/ansible/pull/74999)."
|
|
@ -1057,6 +1057,10 @@ class DocCLI(CLI, RoleMixin):
|
|||
if conf:
|
||||
text.append(DocCLI._dump_yaml({'set_via': conf}, opt_indent))
|
||||
|
||||
# Remove empty version_added_collection
|
||||
if opt.get('version_added_collection') == '':
|
||||
opt.pop('version_added_collection')
|
||||
|
||||
for k in sorted(opt):
|
||||
if k.startswith('_'):
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue