import logging.config
import textwrap
import re
-import shlex, subprocess
+import shlex
import copy
import datetime
import socket
# Third party modules
import six
-from six import reraise
-import requests
from pytz import timezone, UnknownTimeZoneError
-from six.moves.urllib.parse import urlunsplit
-
# Own modules
from .common import pp, compare_fqdn, to_str, to_bool
-from .common import RE_DOT_AT_END
from .pdns_app import PpPDNSAppError, PpPDNSApplication
-from .pdns_app import PDNSApiNotFoundError, PDNSApiValidationError
-from .pdns_zone import PdnsApiZone
-from .pdns_record import compare_rrsets
-from .pidfile import PidFileError, InvalidPidFileError, PidFileInUseError, PidFile
+from .pidfile import PidFileError, PidFile
-__version__ = '0.5.3'
+__version__ = '0.5.4'
LOG = logging.getLogger(__name__)
# Configuration files and directories
self.named_conf_dir = self.default_named_conf_dir
self._named_zones_cfg_file = self.default_named_zones_cfg_file
- self.named_basedir = self.default_named_basedir
- self._named_slavedir = self.default_named_slavedir
+ self.named_basedir = self.default_named_basedir
+ self._named_slavedir = self.default_named_slavedir
self.zone_masters = copy.copy(self.zone_masters_public)
self.masters_configured = False
self.files2replace = {}
self.moved_files = {}
-
description = textwrap.dedent('''\
Generation of the BIND9 configuration file for slave zones.
''')
base_dir=self.base_dir, simulate=self.simulate)
self.initialized = True
-
+
# -------------------------------------------------------------------------
def pre_run(self):
"""