summaryrefslogtreecommitdiff
path: root/lib/ansible/errors
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2022-09-01 14:16:05 -0400
committerGitHub <noreply@github.com>2022-09-01 14:16:05 -0400
commit4260b71cc77b7a44e061668d0d408d847f550156 (patch)
treefa2bcbbacdcd3937a6aceeeefea704679909e340 /lib/ansible/errors
parent2464e1e91c0ee1c65ecff450de973c3ce2ed767d (diff)
downloadansible-4260b71cc77b7a44e061668d0d408d847f550156.tar.gz
refactor and fixes for doc parsing (#77719)
* refactor and remove redundant code in documentation allow location and building api to be more accessible fix issues with displaying ansible.legacy and ansible.builtin ensure we don't x2 process tokens (some modules reference them also) fixes #77764 move to constants vs hardcoded more informative errors and comments now have actual filter/test plugins, which expose the filter/test functions moved filter/test loading/finding logic into jinja2pluginloader, removed dupe implementations added tests for case in which we unique by basename when listing Update lib/ansible/utils/plugin_docs.py Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Diffstat (limited to 'lib/ansible/errors')
-rw-r--r--lib/ansible/errors/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ansible/errors/__init__.py b/lib/ansible/errors/__init__.py
index cfc8f1ba2a..a1132250e0 100644
--- a/lib/ansible/errors/__init__.py
+++ b/lib/ansible/errors/__init__.py
@@ -366,3 +366,8 @@ class AnsibleCollectionUnsupportedVersionError(AnsiblePluginError):
class AnsibleFilterTypeError(AnsibleTemplateError, TypeError):
''' a Jinja filter templating failure due to bad type'''
pass
+
+
+class AnsiblePluginNotFound(AnsiblePluginError):
+ ''' Indicates we did not find an Ansible plugin '''
+ pass