Change instance of ConfigurationManager().get to ConfigurationManager.get

pull/1075/head
esoleyman 2017-08-21 12:26:24 -05:00 committed by Matthew D. Scholefield
parent 5ddf1250ab
commit c8c5afdeaf
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class Api(object):
def __init__(self, path):
self.path = path
config = ConfigurationManager().get()
config = ConfigurationManager.get()
config_server = config.get("server")
self.url = config_server.get("url")
self.version = config_server.get("version")

View File

@ -277,7 +277,7 @@ class RecognizerLoop(EventEmitter):
while self.state.running:
try:
time.sleep(1)
if self._config_hash != hash(str(ConfigurationManager()
if self._config_hash != hash(str(ConfigurationManager
.get())):
LOG.debug('Config has changed, reloading...')
self.reload()