]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Fixing class PpDeployZonesApp
authorFrank Brehm <frank@brehm-online.com>
Tue, 7 Dec 2021 14:56:54 +0000 (15:56 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 7 Dec 2021 14:56:54 +0000 (15:56 +0100)
lib/pp_admintools/deploy_zones_from_pdns.py

index 988e3b393b713951e4f0d996313af1a5cf4d2e1e..bbc5b7c823923781f92005c9b841f3195bc243ec 100644 (file)
@@ -31,6 +31,8 @@ from pytz import timezone, UnknownTimeZoneError
 # Own modules
 from fb_tools.common import pp, to_str, to_bool
 
+from fb_tools.app import BaseApplication
+
 from .pdns_app import PpPDNSAppError, PpPDNSApplication
 
 from .pidfile import PidFileError, PidFile
@@ -461,15 +463,17 @@ class PpDeployZonesApp(PpPDNSApplication):
 
         LOG.info(_("Trying to get all keys from named.conf ..."))
 
-        LOG.info(_("Checking syntax correctness of named.conf ..."))
         cmd = shlex.split(str(self.cmd_checkconf))
         cmd.append('-p')
 
         cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
         LOG.debug(_("Executing: {}").format(cmd_str))
 
-        result = self.run(
+        result = super(BaseApplication, self).run(
             cmd, stdout=PIPE, stderr=PIPE, timeout=10, check=True, may_simulate=False)
+
+#        result = self.run(
+#            cmd, stdout=PIPE, stderr=PIPE, timeout=10, check=True, may_simulate=False)
         if self.verbose > 1:
             LOG.debug(_("Result:") + '\n' + str(result))