mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Merge pull request #4927 from intellectronica/intellectronica/docker-identify-private-repos-backport
Update cloud/docker: if the image name containes a repository, strip it.
This commit is contained in:
@@ -263,6 +263,8 @@ class DockerManager:
|
||||
|
||||
|
||||
def get_split_image_tag(self, image):
|
||||
if '/' in image:
|
||||
image = image.split('/')[1]
|
||||
tag = None
|
||||
if image.find(':') > 0:
|
||||
return image.split(':')
|
||||
|
||||
Reference in New Issue
Block a user