Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> --- libvirt-sandbox/image/sources/docker.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libvirt-sandbox/image/sources/docker.py b/libvirt-sandbox/image/sources/docker.py index 3b59051..c989662 100644 --- a/libvirt-sandbox/image/sources/docker.py +++ b/libvirt-sandbox/image/sources/docker.py @@ -89,9 +89,6 @@ class DockerSource(base.Source): registryendpoint = res.info().getheader('X-Docker-Endpoints') token = res.info().getheader('X-Docker-Token') - checksums = {} - for layer in data: - pass headers = {} if token is not None: @@ -101,8 +98,6 @@ class DockerSource(base.Source): "/v1/repositories" + template.path + "/tags", headers) - cookie = res.info().getheader('Set-Cookie') - tag = template.params.get("tag", "latest") if not tag in data: raise ValueError(["Tag '%s' does not exist for image '%s'" % (tag, template)]) @@ -138,15 +133,11 @@ class DockerSource(base.Source): jsonfile) createdFiles.append(jsonfile) - datacsum = None - if layerid in checksums: - datacsum = checksums[layerid] - self._save_data(template, registryendpoint, "/v1/images/" + layerid + "/layer", headers, - datafile, datacsum) + datafile) createdFiles.append(datafile) index = { -- 2.7.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list