Convert DNSAggregatorInstance to new zkhandler
This commit is contained in:
parent
ef5fe78125
commit
abd619a3c1
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue