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):
|
class DNSAggregatorInstance(object):
|
||||||
# Initialization function
|
# Initialization function
|
||||||
def __init__(self, zk_conn, config, logger):
|
def __init__(self, config, logger):
|
||||||
self.zk_conn = zk_conn
|
|
||||||
self.config = config
|
self.config = config
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
self.dns_networks = dict()
|
self.dns_networks = dict()
|
||||||
|
|
|
@ -779,7 +779,7 @@ volume_list = dict() # Dict of Lists
|
||||||
if enable_networking:
|
if enable_networking:
|
||||||
# Create an instance of the DNS Aggregator and Metadata API if we're a coordinator
|
# Create an instance of the DNS Aggregator and Metadata API if we're a coordinator
|
||||||
if config['daemon_mode'] == '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)
|
metadata_api = MetadataAPIInstance.MetadataAPIInstance(zkhandler.zk_conn, config, logger)
|
||||||
else:
|
else:
|
||||||
dns_aggregator = None
|
dns_aggregator = None
|
||||||
|
|
Loading…
Reference in New Issue