From 04a54a4d94326b1602e4c18bc24c38ec1e50f52b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 29 Nov 2021 18:25:29 +0100 Subject: [PATCH] Adding zone_tsig_key as a property of lib/pp_admintools/deploy_zones_from_pdns.py --- lib/pp_admintools/deploy_zones_from_pdns.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pp_admintools/deploy_zones_from_pdns.py b/lib/pp_admintools/deploy_zones_from_pdns.py index f6a665f..92bda0a 100644 --- a/lib/pp_admintools/deploy_zones_from_pdns.py +++ b/lib/pp_admintools/deploy_zones_from_pdns.py @@ -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()) -- 2.39.5