diff --git a/endpoints/registry.py b/endpoints/registry.py index cb219eadd..b736dc95e 100644 --- a/endpoints/registry.py +++ b/endpoints/registry.py @@ -358,8 +358,8 @@ def process_image_changes(namespace, repository, image_id): # Read in the collapsed layer state of the filesystem for the parent parent_trie = changes.empty_fs() if parent_trie_path: - with store.stream_read_file(parent_trie_path) as parent_trie_stream: - parent_trie.read(parent_trie_stream) + parent_trie_bytes = store.get_content(parent_trie_path) + parent_trie.frombytes(parent_trie_bytes) # Read in the file entries from the layer tar file layer_path = store.image_layer_path(namespace, repository, image_id)