From 492934de3ce3d29eab21a14e57c02c9ad9c0595c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 27 Nov 2018 18:44:34 +0200 Subject: [PATCH] Remove redundant call --- data/model/oci/retriever.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/model/oci/retriever.py b/data/model/oci/retriever.py index 78a07b6ad..1d3c60d7d 100644 --- a/data/model/oci/retriever.py +++ b/data/model/oci/retriever.py @@ -33,5 +33,5 @@ class RepositoryContentRetriever(ContentRetriever): if blob is None: return None - placements = list(get_storage_locations(blob.uuid)) - return self.storage.get_content(placements, get_layer_path(blob)) + assert blob.locations is not None + return self.storage.get_content(blob.locations, get_layer_path(blob))