From 67b4ae93f2d3c6d770f8d9848dcbf9806ec709ec Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 1 Feb 2021 14:58:18 -0500 Subject: [PATCH] Add plugin_type for ansible-doc (#41) Add plugin_type for ansible-doc Reviewed-by: https://github.com/apps/ansible-zuul --- changelogs/fragments/ansible-doc.yaml | 3 +++ plugins/lookup/get_path.py | 1 + plugins/lookup/index_of.py | 1 + plugins/lookup/to_paths.py | 1 + plugins/lookup/validate.py | 1 + 5 files changed, 7 insertions(+) create mode 100644 changelogs/fragments/ansible-doc.yaml diff --git a/changelogs/fragments/ansible-doc.yaml b/changelogs/fragments/ansible-doc.yaml new file mode 100644 index 0000000..ba0bba0 --- /dev/null +++ b/changelogs/fragments/ansible-doc.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - add missing plugin_type for lookup plugins. diff --git a/plugins/lookup/get_path.py b/plugins/lookup/get_path.py index fb9349e..3b8ac8c 100644 --- a/plugins/lookup/get_path.py +++ b/plugins/lookup/get_path.py @@ -15,6 +15,7 @@ __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 74080b3..ce1ecad 100644 --- a/plugins/lookup/index_of.py +++ b/plugins/lookup/index_of.py @@ -15,6 +15,7 @@ __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: diff --git a/plugins/lookup/to_paths.py b/plugins/lookup/to_paths.py index c8b72ab..0b0fec5 100644 --- a/plugins/lookup/to_paths.py +++ b/plugins/lookup/to_paths.py @@ -15,6 +15,7 @@ __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 5ac7c73..09f615b 100644 --- a/plugins/lookup/validate.py +++ b/plugins/lookup/validate.py @@ -10,6 +10,7 @@ __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: