diff --git a/bgpranking/ranking.py b/bgpranking/ranking.py index 7d54c1c..2b7e1f5 100644 --- a/bgpranking/ranking.py +++ b/bgpranking/ranking.py @@ -16,6 +16,7 @@ class Ranking(): self.storage = StrictRedis(unix_socket_path=get_socket_path('storage'), decode_responses=True) self.ranking = StrictRedis(unix_socket_path=get_socket_path('storage'), db=1, decode_responses=True) self.asn_meta = StrictRedis(unix_socket_path=get_socket_path('storage'), db=2, decode_responses=True) + self.config_dir = config_dir def __init_logger(self, loglevel): self.logger = logging.getLogger(f'{self.__class__.__name__}') @@ -72,7 +73,7 @@ class Ranking(): r_pipeline.execute() def compute(self): - self.config_files = load_config_files(config_dir) + self.config_files = load_config_files(self.config_dir) self.logger.info('Start ranking') set_running(self.__class__.__name__) if not self.asn_meta.exists('v4|last') or not self.asn_meta.exists('v6|last'):