Project

Profile

Help

Refactor #1046

closed

pulp.server.async.celery_instance.create_mongo_config() and pulp.server.db.connection.initialize() contain a nearly identical code block

Added by rbarlow almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

pulp.server.async.celery_instance.create_mongo_config() and pulp.server.db.connection.initialize() duplicate the effort of converting the settings in /etc/pulp/server.conf into a pymongo config.

We should refactor this effort out into a single function that they both use so that bug fixes can be made in one place instead of two. They do things a little bit differently as it is, which is confusing.

Also available in: Atom PDF