Merge "Remove unused host/port options"

This commit is contained in:
Zuul 2024-11-21 04:17:48 +00:00 committed by Gerrit Code Review
commit a0935ea53a
4 changed files with 2 additions and 8 deletions

View File

@ -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()

View File

@ -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):

View File

@ -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.

View File

@ -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)