Merge "Remove unused host/port options"
This commit is contained in:
commit
a0935ea53a
@ -39,8 +39,6 @@ class Backend(DriverPlugin):
|
||||
self.target = target
|
||||
self.options = target.options
|
||||
self.masters = target.masters
|
||||
self.host = self.options.get('host', '127.0.0.1')
|
||||
self.port = int(self.options.get('port', 53))
|
||||
|
||||
# TODO(kiall): Context's should never be shared across requests.
|
||||
self.admin_context = DesignateContext.get_admin_context()
|
||||
|
@ -170,8 +170,6 @@ class AkamaiBackend(base.Backend):
|
||||
def __init__(self, target):
|
||||
super().__init__(target)
|
||||
|
||||
self._host = self.options.get('host', '127.0.0.1')
|
||||
self._port = int(self.options.get('port', 53))
|
||||
self.client = self.init_client()
|
||||
|
||||
def init_client(self):
|
||||
|
@ -42,8 +42,6 @@ class Bind9Backend(base.Backend):
|
||||
def __init__(self, target):
|
||||
super().__init__(target)
|
||||
|
||||
self._host = self.options.get('host', '127.0.0.1')
|
||||
self._port = int(self.options.get('port', 53))
|
||||
self._view = self.options.get('view')
|
||||
|
||||
# Removes zone files when a zone is deleted.
|
||||
|
@ -147,8 +147,8 @@ class SendNotify(base.Task):
|
||||
self.target = target
|
||||
|
||||
def __call__(self):
|
||||
host = self.target.options.get('host')
|
||||
port = int(self.target.options.get('port'))
|
||||
host = self.target.options.get('host', '127.0.0.1')
|
||||
port = int(self.target.options.get('port', '53'))
|
||||
|
||||
try:
|
||||
dnsutils.notify(self.zone.name, host, port=port)
|
||||
|
Loading…
x
Reference in New Issue
Block a user