# Third party modules
from fb_tools.argparse_actions import DirectoryOptionAction
-from fb_tools.common import pp
+# from fb_tools.common import pp
from fb_tools.handler import BaseHandler
from fb_tools.multi_config import DEFAULT_ENCODING
# from fb_tools.xlate import format_list
from .ldap import BaseLdapApplication
from ..xlate import XLATOR
-__version__ = '0.7.5'
+__version__ = '0.7.6'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
continue
m = self.re_pf_config.match(line)
if m and m.group('key') == 'virtual_alias_maps':
- values = m.group('value')
+ values = m.group('value')
for mapping in self.re_pf_valsep.split(values):
if self.verbose > 1:
LOG.debug(_('Evaluating mapping {!r}.').format(mapping))
if not m:
msg = _('Could not evaluate virtual alias mapping {!r}.').format(mapping)
LOG.error(msg)
- self.virtalias_mappings.remove(va_file)
+ self.virtalias_mappings.remove(mapping)
return
table_type = m.group('table_type')
if not va_file.exists() or not va_file.is_file():
msg = _('Virtual alias mapping file {!r} does not exists.').format(str(va_file))
LOG.error(msg)
- self.virtalias_mappings.remove(va_file)
+ self.virtalias_mappings.remove(mapping)
return
db_file = va_file.parent / (va_file.name + db_extension)
LOG.error(_(
'DB file for virtual aliases {!r} does not exists or is not a regular '
'file.').format(str(db_file)))
- self.virtalias_mappings.remove(va_file)
+ self.virtalias_mappings.remove(mapping)
return
mtime_db_file = db_file.stat().st_mtime