mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix module._name comparisons to also consider FQCNs. (#230)
This commit is contained in:
@@ -118,7 +118,7 @@ class DatacenterInfoModule(OneViewModuleBase):
|
||||
|
||||
def __init__(self):
|
||||
super(DatacenterInfoModule, self).__init__(additional_arg_spec=self.argument_spec)
|
||||
self.is_old_facts = self.module._name == 'oneview_datacenter_facts'
|
||||
self.is_old_facts = self.module._name in ('oneview_datacenter_facts', 'community.general.oneview_datacenter_facts')
|
||||
if self.is_old_facts:
|
||||
self.module.deprecate("The 'oneview_datacenter_facts' module has been renamed to 'oneview_datacenter_info', "
|
||||
"and the renamed one no longer returns ansible_facts", version='2.13')
|
||||
|
||||
Reference in New Issue
Block a user