mirror of
https://github.com/bspeice/metrik
synced 2024-11-23 07:38:09 -05:00
Make sure the MongoTarget is using config correctly
This commit is contained in:
parent
82590f9d3a
commit
af847c16c3
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user