]> 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:28:16 +0000 (15:28 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 7 Dec 2021 14:28:16 +0000 (15:28 +0100)
lib/pp_admintools/deploy_zones_from_pdns.py

index 8d6afa9e2a88ee8e3b2f9344d7bdf5b0bc4af9b3..988e3b393b713951e4f0d996313af1a5cf4d2e1e 100644 (file)
@@ -462,7 +462,7 @@ class PpDeployZonesApp(PpPDNSApplication):
         LOG.info(_("Trying to get all keys from named.conf ..."))
 
         LOG.info(_("Checking syntax correctness of named.conf ..."))
-        cmd = shlex.split(self.cmd_checkconf)
+        cmd = shlex.split(str(self.cmd_checkconf))
         cmd.append('-p')
 
         cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
@@ -736,7 +736,7 @@ class PpDeployZonesApp(PpPDNSApplication):
     def check_namedconf(self):
 
         LOG.info(_("Checking syntax correctness of named.conf ..."))
-        cmd = shlex.split(self.cmd_checkconf)
+        cmd = shlex.split(str(self.cmd_checkconf))
         if 'named-checkconf' in self.cmd_checkconf and self.verbose > 2:
             cmd.append('-p')
         cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))