Don't try to functionize getting config

This commit is contained in:
Joshua Boniface 2018-06-16 22:40:37 -04:00
parent ddfa423f29
commit 2ae7846ccb
1 changed files with 2 additions and 5 deletions

View File

@ -90,11 +90,8 @@ def readConfig(pvcd_config_file, myhostname):
return config return config
config = {} # Get config
config = readConfig(pvcd_config_file, myhostname)
def getConfig():
global config
config = readConfig(pvcd_config_file, myhostname)
# Connect to local zookeeper # Connect to local zookeeper
zk = kazoo.client.KazooClient(hosts=config['zookeeper']) zk = kazoo.client.KazooClient(hosts=config['zookeeper'])