Fix order of operations between loading a file and logging it

This commit is contained in:
Cort Buffington 2018-08-23 19:15:55 -05:00
parent d9dd1881ad
commit bbad7ee2e7

View File

@ -100,8 +100,8 @@ def hblink_handler(_signal, _frame, _logger):
def build_acl(_reg_acl):
ACL = set()
try:
logger.info('Registration ACL file found, importing entries. This will take about 1.5 seconds per 1 million IDs')
acl_file = import_module(_reg_acl)
logger.info('Registration ACL file found, importing entries. This will take about 1.5 seconds per 1 million IDs')
sections = acl_file.ACL.split(':')
ACL_ACTION = sections[0]
entries_str = sections[1]