From cf1b545dee9a2e49e0aa539a584cdf7d3b86a170 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Sun, 20 Oct 2013 02:39:45 -0400 Subject: [PATCH] Marisa trie needs a real file to read from a stream, use the bytes version instead. --- endpoints/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)