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:
@@ -116,7 +116,7 @@ def main():
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
if module._name == 'python_requirements_facts':
|
||||
if module._name in ('python_requirements_facts', 'community.general.python_requirements_facts'):
|
||||
module.deprecate("The 'python_requirements_facts' module has been renamed to 'python_requirements_info'", version='2.13')
|
||||
if not HAS_DISTUTILS:
|
||||
module.fail_json(
|
||||
|
||||
Reference in New Issue
Block a user