Remove deprecated APIs from ansible-doc (#81729)

* Removed add_collection_plugins
* Removed find_plugins

Fixes: #81716

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/81733/head
Abhijeet Kasurde 1 year ago committed by GitHub
parent 3ec7a6e0db
commit 4b7705b07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
---
removed_features:
- Remove deprecated APIs from ansible-docs (https://github.com/ansible/ansible/issues/81716).

@ -51,11 +51,6 @@ PB_LOADED = {}
SNIPPETS = ['inventory', 'lookup', 'module']
def add_collection_plugins(plugin_list, plugin_type, coll_filter=None):
display.deprecated("add_collection_plugins method, use ansible.plugins.list functions instead.", version='2.17')
plugin_list.update(list_plugins(plugin_type, coll_filter))
def jdump(text):
try:
display.display(json_dump(text))
@ -424,11 +419,6 @@ class DocCLI(CLI, RoleMixin):
return f"`{text}' (of {plugin})"
return f"`{text}'"
@classmethod
def find_plugins(cls, path, internal, plugin_type, coll_filter=None):
display.deprecated("find_plugins method as it is incomplete/incorrect. use ansible.plugins.list functions instead.", version='2.17')
return list_plugins(plugin_type, coll_filter, [path]).keys()
@classmethod
def tty_ify(cls, text):

@ -201,5 +201,4 @@ README.md pymarkdown:line-length
test/integration/targets/ansible-vault/invalid_format/README.md pymarkdown:no-bare-urls
test/support/README.md pymarkdown:no-bare-urls
test/units/cli/test_data/role_skeleton/README.md pymarkdown:line-length
lib/ansible/cli/doc.py pylint:ansible-deprecated-version # 2.17 deprecation
lib/ansible/utils/encrypt.py pylint:ansible-deprecated-version # 2.17 deprecation

Loading…
Cancel
Save