From: Frank Brehm Date: Tue, 7 Dec 2021 14:28:16 +0000 (+0100) Subject: Fixing class PpDeployZonesApp X-Git-Tag: 0.4.1~5^2~10 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=c8fe42db9565c596d57759020250afa79a927196;p=pixelpark%2Fpp-admin-tools.git Fixing class PpDeployZonesApp --- diff --git a/lib/pp_admintools/deploy_zones_from_pdns.py b/lib/pp_admintools/deploy_zones_from_pdns.py index 8d6afa9..988e3b3 100644 --- a/lib/pp_admintools/deploy_zones_from_pdns.py +++ b/lib/pp_admintools/deploy_zones_from_pdns.py @@ -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))