mirror of
				https://github.com/bspeice/metrik
				synced 2025-11-04 02:10:43 -05:00 
			
		
		
		
	Make sure the MongoTarget is using config correctly
This commit is contained in:
		@ -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]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user