mirror of
https://github.com/ShaYmez/hblink3.git
synced 2024-11-21 23:45:15 -05:00
provide meaninful output when a bridge is configured for a system not in the main configuration
This commit is contained in:
parent
1c5aa6eec5
commit
8406148d0a
@ -105,7 +105,7 @@ def make_bridges(_rules):
|
|||||||
for _bridge in bridge_file.BRIDGES:
|
for _bridge in bridge_file.BRIDGES:
|
||||||
for _system in bridge_file.BRIDGES[_bridge]:
|
for _system in bridge_file.BRIDGES[_bridge]:
|
||||||
if _system['SYSTEM'] not in CONFIG['SYSTEMS']:
|
if _system['SYSTEM'] not in CONFIG['SYSTEMS']:
|
||||||
sys.exit('ERROR: Conference bridges found for system not configured main configuration')
|
sys.exit('ERROR: Conference bridge "{}" references a system named "{}" that is not enabled in the main configuration'.format(_bridge, _system['SYSTEM']))
|
||||||
|
|
||||||
_system['TGID'] = bytes_3(_system['TGID'])
|
_system['TGID'] = bytes_3(_system['TGID'])
|
||||||
for i, e in enumerate(_system['ON']):
|
for i, e in enumerate(_system['ON']):
|
||||||
|
Loading…
Reference in New Issue
Block a user