diff --git a/CHANGES/1493.bugfix b/CHANGES/1493.bugfix new file mode 100644 index 000000000..37b7ebc2d --- /dev/null +++ b/CHANGES/1493.bugfix @@ -0,0 +1,2 @@ +Fixed a bug that caused intermittent failures during the pull-through caching when using non-local +filesystem storage. diff --git a/pulp_container/app/registry.py b/pulp_container/app/registry.py index b35c3ba57..136e02dea 100644 --- a/pulp_container/app/registry.py +++ b/pulp_container/app/registry.py @@ -88,10 +88,8 @@ async def _dispatch(artifact, headers): if not os.path.exists(path): raise Exception("Expected path '{}' is not found".format(path)) return web.FileResponse(path, headers=full_headers) - elif not settings.REDIRECT_TO_OBJECT_STORAGE: - return ArtifactResponse(artifact=artifact, headers=headers) else: - raise NotImplementedError("Redirecting to this storage is not implemented.") + return ArtifactResponse(artifact=artifact, headers=headers) @RegistryContentCache( base_key=lambda req, cac: Registry.find_base_path_cached(req, cac),