Don't try to functionize getting config
This commit is contained in:
		
							
								
								
									
										7
									
								
								pvcd.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								pvcd.py
									
									
									
									
									
								
							@@ -90,11 +90,8 @@ def readConfig(pvcd_config_file, myhostname):
 | 
			
		||||
 | 
			
		||||
    return config
 | 
			
		||||
 | 
			
		||||
config = {}
 | 
			
		||||
 | 
			
		||||
def getConfig():
 | 
			
		||||
    global config
 | 
			
		||||
    config = readConfig(pvcd_config_file, myhostname)
 | 
			
		||||
# Get config
 | 
			
		||||
config = readConfig(pvcd_config_file, myhostname)
 | 
			
		||||
 | 
			
		||||
# Connect to local zookeeper
 | 
			
		||||
zk = kazoo.client.KazooClient(hosts=config['zookeeper'])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user