mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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:
parent
98af8161b2
commit
081c534d40
161 changed files with 167 additions and 10434 deletions
|
@ -1 +0,0 @@
|
|||
idrac_redfish_info.py
|
|
@ -193,11 +193,6 @@ def main():
|
|||
],
|
||||
supports_check_mode=False
|
||||
)
|
||||
is_old_facts = module._name in ('idrac_redfish_facts', 'community.general.idrac_redfish_facts')
|
||||
if is_old_facts:
|
||||
module.deprecate("The 'idrac_redfish_facts' module has been renamed to 'idrac_redfish_info', "
|
||||
"and the renamed one no longer returns ansible_facts",
|
||||
version='3.0.0', collection_name='community.general') # was Ansible 2.13
|
||||
|
||||
category = module.params['category']
|
||||
command_list = module.params['command']
|
||||
|
@ -239,10 +234,7 @@ def main():
|
|||
# Return data back or fail with proper message
|
||||
if result['ret'] is True:
|
||||
del result['ret']
|
||||
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)
|
||||
else:
|
||||
module.fail_json(msg=to_native(result['msg']))
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
redfish_info.py
|
|
@ -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__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue