From 2b63b5c11153a3a3790508b48d823f3daf24f073 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 5 Feb 2018 11:20:41 -0600 Subject: [PATCH] Fix Bug where confbridge.py would not start if there was not an ACL defined. --- confbridge.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/confbridge.py b/confbridge.py index ddf59f7..8d7eb9e 100755 --- a/confbridge.py +++ b/confbridge.py @@ -150,14 +150,13 @@ def make_bridge_config(_confbridge_rules): # Global action is to allow or deny them. Multiple lists with different actions and ranges # are not yet implemented. def build_acl(_sub_acl): + ACL = set() try: logger.info('ACL file found, importing entries. This will take about 1.5 seconds per 1 million IDs') acl_file = import_module(_sub_acl) sections = acl_file.ACL.split(':') ACL_ACTION = sections[0] entries_str = sections[1] - ACL = set() - for entry in entries_str.split(','): if '-' in entry: start,end = entry.split('-')