mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix module._name comparisons to also consider FQCNs. (#230)
This commit is contained in:
@@ -104,7 +104,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=False,
|
||||
)
|
||||
is_old_facts = module._name == 'smartos_image_facts'
|
||||
is_old_facts = module._name in ('smartos_image_facts', 'community.general.smartos_image_facts')
|
||||
if is_old_facts:
|
||||
module.deprecate("The 'smartos_image_facts' module has been renamed to 'smartos_image_info', "
|
||||
"and the renamed one no longer returns ansible_facts", version='2.13')
|
||||
|
||||
Reference in New Issue
Block a user