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))
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))