From 0c77d18f32484fb3c0d522ee50c2ced7ac20b3f3 Mon Sep 17 00:00:00 2001 From: Ashwini Mhatre Date: Thu, 14 Apr 2022 03:44:05 +0530 Subject: [PATCH] Fix validate-module sanity for stable 2.13 sanity job (#164) * Fix validate-module sanity * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bradley A. Thornton --- changelogs/fragments/sanity_fix.yaml | 3 +++ plugins/lookup/get_path.py | 1 - plugins/lookup/index_of.py | 2 +- plugins/lookup/to_paths.py | 1 - plugins/lookup/validate.py | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/sanity_fix.yaml diff --git a/changelogs/fragments/sanity_fix.yaml b/changelogs/fragments/sanity_fix.yaml new file mode 100644 index 0000000..5251281 --- /dev/null +++ b/changelogs/fragments/sanity_fix.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - fix validate-module sanity tests. diff --git a/plugins/lookup/get_path.py b/plugins/lookup/get_path.py index 3b8ac8c..fb9349e 100644 --- a/plugins/lookup/get_path.py +++ b/plugins/lookup/get_path.py @@ -15,7 +15,6 @@ __metaclass__ = type DOCUMENTATION = """ name: get_path author: Bradley Thornton (@cidrblock) - plugin_type: lookup version_added: "1.0.0" short_description: Retrieve the value in a variable using a path description: diff --git a/plugins/lookup/index_of.py b/plugins/lookup/index_of.py index ce1ecad..f584a32 100644 --- a/plugins/lookup/index_of.py +++ b/plugins/lookup/index_of.py @@ -15,7 +15,6 @@ __metaclass__ = type DOCUMENTATION = """ name: index_of author: Bradley Thornton (@cidrblock) - plugin_type: lookup version_added: "1.0.0" short_description: Find the indices of items in a list matching some criteria description: @@ -27,6 +26,7 @@ DOCUMENTATION = """ data: description: A list of items to enumerate and test against. type: list + elements: raw required: True test: description: > diff --git a/plugins/lookup/to_paths.py b/plugins/lookup/to_paths.py index 0b0fec5..c8b72ab 100644 --- a/plugins/lookup/to_paths.py +++ b/plugins/lookup/to_paths.py @@ -15,7 +15,6 @@ __metaclass__ = type DOCUMENTATION = """ name: to_paths author: Bradley Thornton (@cidrblock) - plugin_type: lookup version_added: "1.0.0" short_description: Flatten a complex object into a dictionary of paths and values description: diff --git a/plugins/lookup/validate.py b/plugins/lookup/validate.py index 2fe1fa3..1d54b18 100644 --- a/plugins/lookup/validate.py +++ b/plugins/lookup/validate.py @@ -10,7 +10,6 @@ __metaclass__ = type DOCUMENTATION = """ name: validate author: Ganesh Nalawade (@ganeshrn) - plugin_type: lookup version_added: "1.0.0" short_description: Validate data with provided criteria description: