From 412af6ae9176260cbda76426ef40e7e660e7a6ce Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 28 May 2020 13:23:30 -0700 Subject: [PATCH] Fix docs return formatting. (#69632) Gets rid of the unknown field names in the return data. Allows the plugin return docs to format under the new docs pipeline. * Expect that package_facts will pass return-syntax-error now. --- lib/ansible/modules/package_facts.py | 4 ++-- test/sanity/ignore.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/package_facts.py b/lib/ansible/modules/package_facts.py index b00db2fe2c3..60fb5669889 100644 --- a/lib/ansible/modules/package_facts.py +++ b/lib/ansible/modules/package_facts.py @@ -116,7 +116,7 @@ ansible_facts: ... } } - sample_rpm: + # Sample rpm { "packages": { "kernel": [ @@ -183,7 +183,7 @@ ansible_facts: ], } } - sample_deb: + # Sample deb { "packages": { "libbz2-1.0": [ diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index bb5981ae605..ff4a4ce1e9b 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -177,7 +177,6 @@ lib/ansible/modules/dpkg_selections.py validate-modules:doc-required-mismatch lib/ansible/modules/package_facts.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/package_facts.py validate-modules:doc-missing-type lib/ansible/modules/package_facts.py validate-modules:parameter-list-no-elements -lib/ansible/modules/package_facts.py validate-modules:return-syntax-error lib/ansible/modules/rpm_key.py validate-modules:parameter-type-not-in-doc lib/ansible/modules/yum.py pylint:blacklisted-name lib/ansible/modules/yum.py validate-modules:doc-default-does-not-match-spec