from ..config.dns_deploy_zones import DnsDeployZonesConfig
from ..xlate import XLATOR
-__version__ = '0.8.8'
+__version__ = '0.8.9'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
cmd = shlex.split(self.cmd_named_checkconf)
cmd.append('-p')
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
result = super(BaseApplication, self).run(
cmd = shlex.split(self.cmd_named_checkconf)
if self.verbose > 2:
cmd.append('-p')
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
result = super(BaseApplication, self).run(
LOG.debug(_('Checking, whether named is running ...'))
cmd = shlex.split(self.cmd_named_status)
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
std_out = None
LOG.info(_('Starting {} ...').format('named'))
cmd = shlex.split(self.cmd_named_start)
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
if self.simulate:
LOG.info(_('Restarting {} ...').format('named'))
cmd = shlex.split(self.cmd_named_restart)
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
if self.simulate:
LOG.info(_('Reloading {} ...').format('named'))
cmd = shlex.split(self.cmd_named_reload)
- cmd_str = ' '.join(map(lambda x: pipes.quote(x), cmd))
+ cmd_str = ' '.join((pipes.quote(x) for x in cmd))
LOG.debug(_('Executing: {}').format(cmd_str))
if self.simulate: