Remove deprecated modules scheduled for removal in 3.0.0 (#1924)

* Remove deprecated modules scheduled for removal in 3.0.0.

* Update BOTMETA.

* Update ignore-2.12.txt.

* Next release will be 3.0.0.
This commit is contained in:
Felix Fontein 2021-04-13 13:19:25 +02:00 committed by GitHub
commit 081c534d40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
161 changed files with 167 additions and 10434 deletions

View file

@ -320,11 +320,6 @@ def main():
],
supports_check_mode=False
)
is_old_facts = module._name in ('redfish_facts', 'community.general.redfish_facts')
if is_old_facts:
module.deprecate("The 'redfish_facts' module has been renamed to 'redfish_info', "
"and the renamed one no longer returns ansible_facts",
version='3.0.0', collection_name='community.general') # was Ansible 2.13
# admin credentials used for authentication
creds = {'user': module.params['username'],
@ -472,10 +467,7 @@ def main():
result["health_report"] = rf_utils.get_multi_manager_health_report()
# Return data back
if is_old_facts:
module.exit_json(ansible_facts=dict(redfish_facts=result))
else:
module.exit_json(redfish_facts=result)
module.exit_json(redfish_facts=result)
if __name__ == '__main__':