Commit f2ca1563 authored by Elena Grandi's avatar Elena Grandi

Fix loading of all arpwatch files

parent d7bf8691
......@@ -80,10 +80,14 @@ class Manager:
for fname in os.listdir(self.config.arpwatch_datadir):
if fname.endswith('.dat'):
source = sources.ArpwatchDataSource
if not source.is_viable(self.config, fname):
dat_fname = os.path.join(
self.config.arpwatch_datadir,
fname
)
if not source.is_viable(self.config, dat_fname):
self.log.warn(
"ArpwatchDataSource: data source will not be started on %s",
fname
dat_fname
)
continue
self.sources.append(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment