mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix module._name comparisons to also consider FQCNs. (#230)
This commit is contained in:
@@ -183,7 +183,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=False
|
||||
)
|
||||
is_old_facts = module._name == 'idrac_redfish_facts'
|
||||
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='2.13')
|
||||
|
||||
@@ -309,7 +309,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=False
|
||||
)
|
||||
is_old_facts = module._name == 'redfish_facts'
|
||||
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='2.13')
|
||||
|
||||
Reference in New Issue
Block a user