[Pkg-libvirt-commits] [libvirt-sandbox] 25/42: docker: remove unused variables & code in download method

Guido Guenther agx at moszumanska.debian.org
Sat May 27 16:27:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch debian/experimental
in repository libvirt-sandbox.

commit de97339a29b193946817b7d88bab95e437dbe7ec
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Thu Jul 14 11:38:47 2016 +0100

    docker: remove unused variables & code in download method
    
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 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 = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt-sandbox.git



More information about the Pkg-libvirt-commits mailing list