summaryrefslogtreecommitdiffstats
path: root/sources.py
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2017-04-13 15:06:34 +0100
committerCédric Bosdonnat <cbosdonnat@suse.com>2017-04-14 10:33:03 +0200
commit612c5bbb7babe41b463297576710d60ee6188dee (patch)
tree4b7ffe7ddcf38915f20e3b615019c6e0770dc65c /sources.py
parent87fc188d5a210b406355d159ea3e84f90ff8cb38 (diff)
downloadvirt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.tar.gz
virt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.tar.xz
virt-bootstrap.git-612c5bbb7babe41b463297576710d60ee6188dee.zip
Fix error: `subprocess.CalledProcessError: Command
Fix the following failing skopeo call: 'skopeo copy docker://ubuntu:latest/ dir://tmp/tmpyFFP9Wvirt-bootstrap' The function `tempfile.mkdtemp()` returns full path and do not need additional slash at the beginning. Thus the destination path is incorrect. `dir://tmp/tmpyFFP9Wvirt-bootstrap` -----^ it should be: `dir:/tmp/tmpyFFP9Wvirt-bootstrap` -----^
Diffstat (limited to 'sources.py')
-rw-r--r--sources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources.py b/sources.py
index 4e98610..7045a29 100644
--- a/sources.py
+++ b/sources.py
@@ -68,7 +68,7 @@ class DockerSource:
# folders for broader enablement
cmd = ["skopeo", "copy",
"docker://%s/%s" % (self.registry, self.image),
- "dir:/%s" % tmpDest]
+ "dir:%s" % tmpDest]
if self.insecure:
cmd.append('--src-tls-verify=false')
if self.username: