Fix wrong pingif tables

This commit is contained in:
Emanuel Barry 2015-06-01 14:25:50 -04:00
parent ce880950cd
commit 24851f3c56

View File

@ -1070,14 +1070,14 @@ def init_db():
if row[1]:
if row[0] not in PING_IF_PREFS_ACCS:
PING_IF_PREFS_ACCS[row[0]] = row[2]
if row[1] not in PING_IF_NUMS_ACCS:
if row[2] not in PING_IF_NUMS_ACCS:
PING_IF_NUMS_ACCS[row[2]] = []
PING_IF_NUMS_ACCS[row[2]].append(row[0])
# is a host
else:
if row[0] not in PING_IF_PREFS:
PING_IF_PREFS[row[0]] = row[2]
if row[1] not in PING_IF_NUMS:
if row[2] not in PING_IF_NUMS:
PING_IF_NUMS[row[2]] = []
PING_IF_NUMS[row[2]].append(row[0])