fwn: attempt to fix fasjson integration

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2021-06-16 13:58:48 +10:00 committed by kevin
parent 309cb94383
commit 8e599de16f

View file

@ -104,7 +104,7 @@ def _add_to_cache(users):
def update_nick(username):
global client
if config.get('fasjson'):
if config.app_conf.get('fasjson'):
try:
log.info("Downloading FASJSON cache for %s*" % username)
response = client.get_user(username=username)
@ -141,7 +141,7 @@ def update_nick(username):
def update_email(email):
global client
if config.get('fasjson'):
if config.app_conf.get('fasjson'):
try:
log.info("Downloading FASJSON cache for %s*" % email)
response = client.search(email=email)