]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding zone_tsig_key as a property of lib/pp_admintools/deploy_zones_from_pdns.py
authorFrank Brehm <frank@brehm-online.com>
Mon, 29 Nov 2021 17:25:29 +0000 (18:25 +0100)
committerFrank Brehm <frank@brehm-online.com>
Mon, 29 Nov 2021 17:25:29 +0000 (18:25 +0100)
lib/pp_admintools/deploy_zones_from_pdns.py

index f6a665f88da39997658ec92177872c097dd0845d..92bda0a8733e8a869116333c23dd7a5dcc203811 100644 (file)
@@ -37,7 +37,7 @@ from .pidfile import PidFileError, PidFile
 
 from .xlate import XLATOR
 
-__version__ = '0.6.3'
+__version__ = '0.7.0'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -130,6 +130,8 @@ class PpDeployZonesApp(PpPDNSApplication):
         self.cmd_start = self.default_cmd_start
         self.cmd_restart = self.default_cmd_restart
 
+        self.zone_tsig_key = None
+
         self.files2replace = {}
         self.moved_files = {}
 
@@ -241,7 +243,9 @@ class PpDeployZonesApp(PpPDNSApplication):
         if 'masters' in section:
             self._get_masters_from_cfg(section['masters'], section_name)
 
-        for item in ('cmd_checkconf', 'cmd_reload', 'cmd_status', 'cmd_start', 'cmd_restart'):
+        for item in (
+                'cmd_checkconf', 'cmd_reload', 'cmd_status', 'cmd_start',
+                'cmd_restart', 'zone_tsig_key'):
             if item in section and section[item].strip():
                 setattr(self, item, section[item].strip())