mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fix module._name comparisons to also consider FQCNs. (#230)
This commit is contained in:
parent
d31b9dfa99
commit
61cf2b74c4
63 changed files with 63 additions and 63 deletions
|
@ -103,7 +103,7 @@ def main():
|
|||
unregistered=dict(default=False, type='bool'),
|
||||
)
|
||||
module = AnsibleModule(argument_spec)
|
||||
is_old_facts = module._name == 'ovirt_storage_template_facts'
|
||||
is_old_facts = module._name in ('ovirt_storage_template_facts', 'community.general.ovirt_storage_template_facts')
|
||||
if is_old_facts:
|
||||
module.deprecate("The 'ovirt_storage_template_facts' module has been renamed to 'ovirt_storage_template_info', "
|
||||
"and the renamed one no longer returns ansible_facts", version='2.13')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue