Convert DNSAggregatorInstance to new zkhandler

This commit is contained in:
Joshua Boniface 2021-05-31 19:53:29 -04:00
parent ef5fe78125
commit abd619a3c1
2 changed files with 2 additions and 3 deletions

View File

@ -31,8 +31,7 @@ import pvcnoded.common as common
class DNSAggregatorInstance(object):
# Initialization function
def __init__(self, zk_conn, config, logger):
self.zk_conn = zk_conn
def __init__(self, config, logger):
self.config = config
self.logger = logger
self.dns_networks = dict()

View File

@ -779,7 +779,7 @@ volume_list = dict() # Dict of Lists
if enable_networking:
# Create an instance of the DNS Aggregator and Metadata API if we're a coordinator
if config['daemon_mode'] == 'coordinator':
dns_aggregator = DNSAggregatorInstance.DNSAggregatorInstance(zkhandler.zk_conn, config, logger)
dns_aggregator = DNSAggregatorInstance.DNSAggregatorInstance(config, logger)
metadata_api = MetadataAPIInstance.MetadataAPIInstance(zkhandler.zk_conn, config, logger)
else:
dns_aggregator = None