mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
Fix module._name comparisons to also consider FQCNs. (#230)
This commit is contained in:
parent
bfcb96573f
commit
02f640326c
@ -1140,7 +1140,7 @@ def main():
|
||||
supports_check_mode=True,
|
||||
min_docker_api_version='1.20',
|
||||
)
|
||||
if client.module._name == 'docker_service':
|
||||
if client.module._name in ('docker_service', 'community.docker.docker_service'):
|
||||
client.module.deprecate("The 'docker_service' module has been renamed to 'docker_compose'.", version='2.12')
|
||||
|
||||
try:
|
||||
|
||||
@ -253,7 +253,7 @@ def main():
|
||||
supports_check_mode=True,
|
||||
min_docker_api_version='1.20',
|
||||
)
|
||||
if client.module._name == 'docker_image_facts':
|
||||
if client.module._name in ('docker_image_facts', 'community.docker.docker_image_facts'):
|
||||
client.module.deprecate("The 'docker_image_facts' module has been renamed to 'docker_image_info'", version='2.12')
|
||||
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user