1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-15 16:31:30 +00:00

Adjust deprecation versions.

This commit is contained in:
Felix Fontein 2020-06-13 16:51:18 +02:00
parent f9589d78a8
commit 7bb008a964
136 changed files with 549 additions and 678 deletions

View file

@ -247,7 +247,7 @@ def update_jks_perm(module, keystore_path):
try:
file_args = module.load_file_common_arguments(module.params, path=keystore_path)
except TypeError:
# The path argument is only supported in Ansible 2.10+. Fall back to
# The path argument is only supported in Ansible-baes 2.10+. Fall back to
# pre-2.10 behavior for older Ansible versions.
module.params['path'] = keystore_path
file_args = module.load_file_common_arguments(module.params)

View file

@ -112,7 +112,8 @@ def main():
supports_check_mode=True,
)
if module._name in ('python_requirements_facts', 'community.general.python_requirements_facts'):
module.deprecate("The 'python_requirements_facts' module has been renamed to 'python_requirements_info'", version='2.13')
module.deprecate("The 'python_requirements_facts' module has been renamed to 'python_requirements_info'",
version='3.0.0', collection_name='community.general') # was Ansible 2.13
if not HAS_DISTUTILS:
module.fail_json(
msg='Could not import "distutils" and "pkg_resources" libraries to introspect python environment.',