Fix module._name comparisons to also consider FQCNs. (#230)

This commit is contained in:
Felix Fontein
2020-04-24 19:55:31 +02:00
committed by GitHub
parent d31b9dfa99
commit 61cf2b74c4
63 changed files with 63 additions and 63 deletions

View File

@@ -164,7 +164,7 @@ def main():
),
supports_check_mode=True,
)
is_old_facts = module._name == 'hpilo_facts'
is_old_facts = module._name in ('hpilo_facts', 'community.general.hpilo_facts')
if is_old_facts:
module.deprecate("The 'hpilo_facts' module has been renamed to 'hpilo_info', "
"and the renamed one no longer returns ansible_facts", version='2.13')