1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-03 10:24:20 +00:00

py-i2phosts-checker: bugfix: quote sam_addr

This commit is contained in:
Hidden Z 2010-10-30 21:52:50 +00:00
parent e1be09b22f
commit 1574c1d13f

View File

@ -51,7 +51,7 @@ log = get_logger(filename=log_file, log_level=log_level)
all_hosts = i2phost.objects.all()
# determine SAM interface address
if sam_addr in config:
if 'sam_addr' in config:
sam_addr = config['sam_addr']
else:
log.warning('SAM address isn\'t specified in config, falling back to localhost')