1
0
mirror of https://github.com/bspeice/metrik synced 2024-11-04 22:48:11 -05:00

Make sure the MongoTarget is using config correctly

This commit is contained in:
Bradlee Speice 2016-08-24 16:05:00 -04:00
parent 82590f9d3a
commit af847c16c3

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]