summaryrefslogtreecommitdiffstats
path: root/src/virtBootstrap/sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtBootstrap/sources.py')
-rw-r--r--src/virtBootstrap/sources.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/virtBootstrap/sources.py b/src/virtBootstrap/sources.py
index cef0623..650e45c 100644
--- a/src/virtBootstrap/sources.py
+++ b/src/virtBootstrap/sources.py
@@ -263,7 +263,9 @@ class DockerSource(object):
self.output_format = args.format
self.insecure = args.not_secure
self.no_cache = args.no_cache
- if self.image and not self.image.startswith('/'):
+ if not self.registry and self.image.startswith('/'):
+ self.image = self.image[1:]
+ elif self.image and not self.image.startswith('/'):
self.image = '/' + self.image
self.url = "docker://" + self.registry + self.image