From 17d8ec8900cd981f8e1db5a7e7b323cc5c9e8f43 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Tue, 18 Jul 2017 10:12:54 +0100 Subject: DockerSource: Remove '/' at the end of URI This change aims to convert URI: docker:///repository/my_image/ to: docker://repository/my_image --- src/virtBootstrap/sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/virtBootstrap/sources.py b/src/virtBootstrap/sources.py index 77aa15f..f05d057 100644 --- a/src/virtBootstrap/sources.py +++ b/src/virtBootstrap/sources.py @@ -145,7 +145,7 @@ class DockerSource(object): image = image[1:] # Convert "docker:///" to "docker://" - elif image.endswith('/'): + if image.endswith('/'): image = image[:-1] return "docker://" + registry + image -- cgit