mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix the case where a docker image is not part of a namespace.
Fixes #9016
This commit is contained in:
parent
fdf126a337
commit
733290a731
1 changed files with 4 additions and 1 deletions
|
@ -507,7 +507,10 @@ class DockerManager:
|
|||
|
||||
def get_split_image_tag(self, image):
|
||||
# If image contains a host or org name, omit that from our check
|
||||
registry, resource = image.rsplit('/', 1)
|
||||
if image.find('/') > 0:
|
||||
registry, resource = image.rsplit('/', 1)
|
||||
else:
|
||||
registry, resource = '', image
|
||||
|
||||
# now we can determine if image has a tag
|
||||
if resource.find(':') > 0:
|
||||
|
|
Loading…
Reference in a new issue