From eb17ab8c27746c57404394ab9be2264fdb49fdcc Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 8 Sep 2022 15:19:45 -0400 Subject: [PATCH] ansible-doc consistent version info ignore (#78725) --- changelogs/fragments/doc_vac_ignore.yml | 2 ++ lib/ansible/cli/doc.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/doc_vac_ignore.yml diff --git a/changelogs/fragments/doc_vac_ignore.yml b/changelogs/fragments/doc_vac_ignore.yml new file mode 100644 index 00000000000..6b7eab0a6ab --- /dev/null +++ b/changelogs/fragments/doc_vac_ignore.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-doc will now not display version_added_collection under same conditions it does not display version_added. diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 07abf32f326..b2e2ed9aa42 100755 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -355,7 +355,7 @@ class DocCLI(CLI, RoleMixin): name = 'ansible-doc' # default ignore list for detailed views - IGNORE = ('module', 'docuri', 'version_added', 'short_description', 'now_date', 'plainexamples', 'returndocs', 'collection') + IGNORE = ('module', 'docuri', 'version_added', 'version_added_collection', 'short_description', 'now_date', 'plainexamples', 'returndocs', 'collection') # Warning: If you add more elements here, you also need to add it to the docsite build (in the # ansible-community/antsibull repo)