From c8fe42db9565c596d57759020250afa79a927196 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 7 Dec 2021 15:28:16 +0100 Subject: [PATCH] Fixing class PpDeployZonesApp --- lib/pp_admintools/deploy_zones_from_pdns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.39.5