mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-12 16:10:49 -07: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:
commit
1e4609343d
1 changed files with 2 additions and 0 deletions
|
@ -263,6 +263,8 @@ class DockerManager:
|
||||||
|
|
||||||
|
|
||||||
def get_split_image_tag(self, image):
|
def get_split_image_tag(self, image):
|
||||||
|
if '/' in image:
|
||||||
|
image = image.split('/')[1]
|
||||||
tag = None
|
tag = None
|
||||||
if image.find(':') > 0:
|
if image.find(':') > 0:
|
||||||
return image.split(':')
|
return image.split(':')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue