Make sure the MongoTarget is using config correctly

master
Bradlee Speice 2016-08-24 16:05:00 -04:00
parent 82590f9d3a
commit af847c16c3
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class MongoTarget(Target):
config = get_config()
self.connection = MongoClient(
host=config.get('metrik', 'mongo_host'),
port=config.get('metrik', 'mongo_port'))[
port=config.getint('metrik', 'mongo_port'))[
config.get('metrik', 'mongo_database')
]
self.collection = self.connection[collection]