diff --git a/streamer/pulp/streamer/server.py b/streamer/pulp/streamer/server.py index bd8d957710..58b4ee0b58 100644 --- a/streamer/pulp/streamer/server.py +++ b/streamer/pulp/streamer/server.py @@ -210,6 +210,14 @@ def _download(self, catalog_entry, request, responder): # Configure the primary downloader for alternate content sources plugin_importer, config, db_importer = repo_controller.get_importer_by_id( catalog_entry.importer_id) + # There is an unfortunate mess of configuration classes and attributes, and + # multiple "models" floating around. The MongoEngine class that corresponds + # to the database entry only contains the repository config. The ``config`` + # variable above contains the repository configuration _and_ the plugin-wide + # configuration, so here we override the db_importer.config because it doesn't + # have the whole config. In the future the importer object should seemlessly + # load and apply the plugin-wide configuration. + db_importer.config = config.flatten() primary_downloader = plugin_importer.get_downloader_for_db_importer( db_importer, catalog_entry.url, working_dir='/tmp') pulp_request = request.getHeader(PULP_STREAM_REQUEST_HEADER)