From af847c16c3f490e3b623142bf1c6e6bc18c28a05 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Wed, 24 Aug 2016 16:05:00 -0400 Subject: [PATCH] Make sure the MongoTarget is using config correctly --- metrik/targets/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrik/targets/mongo.py b/metrik/targets/mongo.py index 17822f2..eef8d96 100644 --- a/metrik/targets/mongo.py +++ b/metrik/targets/mongo.py @@ -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]