Fix merge error in streaming support

This was due to a local rebase error.

This should also fix the test which should have caught this.

Change-Id: I6533f0bc9247298b3afae50b1eb46e6f40bf9085
This commit is contained in:
James E. Blair 2019-10-03 14:42:29 -07:00
parent 00794462eb
commit a6ebe80fc4
2 changed files with 4 additions and 5 deletions

View File

@ -25,10 +25,10 @@
command: docker image ls --all --digests --no-trunc
- name: Pull the test image from Docker Hub
command: docker pull registry
command: docker pull alpine
- name: Tag the test image with a realistic name
command: docker tag registry localhost:9000/test/registry
command: docker tag alpine localhost:9000/test/registry
- name: Log in to local registry
command: docker login localhost:9000 -u testuser -p testpass
@ -41,7 +41,7 @@
command: docker rmi localhost:9000/test/registry
- name: Remove the test image from the local cache
command: docker rmi registry
command: docker rmi alpine:latest
- name: Clean up the local image cache
command: docker image prune -f

View File

@ -140,8 +140,7 @@ class Storage:
return self.backend.get_object(path)
def stream_blob(self, namespace, digest):
path = os.path.join(namespace, 'blobs',
self._path_from_digest(digest), 'data')
path = os.path.join(namespace, 'blobs', digest, 'data')
return self.backend.stream_object(path)
def start_upload(self, namespace):