Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9fb6cabe
Commit
9fb6cabe
authored
Sep 15, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix splitting the tag from the image name
Fixes #8983
parent
8d6ed6e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/cloud/docker
+3
-3
No files found.
library/cloud/docker
View file @
9fb6cabe
...
...
@@ -507,12 +507,12 @@ class DockerManager:
def
get_split_image_tag
(
self
,
image
):
# If image contains a host or org name, omit that from our check
re
source
=
image
.
rsplit
(
'/'
,
1
)[
-
1
]
re
gistry
,
resource
=
image
.
rsplit
(
'/'
,
1
)
# now we can determine if image has a tag
if
resource
.
find
(
':'
)
>
0
:
# Use image here so that host and org name are included
return
image
.
split
(
':'
,
1
)
resource
,
tag
=
resource
.
split
(
':'
,
1
)
return
'/'
.
join
((
registry
,
resource
)),
tag
else
:
tag
=
"latest"
return
image
,
tag
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment