from ..argparse_actions import NonNegativeItegerOptionAction
from ..argparse_actions import LimitedFloatOptionAction
-__version__ = '0.5.0'
+__version__ = '0.5.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
self.wait = getattr(self.args, 'wait', self.default_wait_after_write)
self._check_source_instance()
+ self._eval_keep_dns()
+
+ # -------------------------------------------------------------------------
+ def _eval_keep_dns(self):
+
+ if self.tgt_instance not in self.cfg.entries_keep:
+ if self.verbose > 4:
+ LOG.debug(_("Did not found {tgt!r} in {e}:").format(
+ tgt=self.tgt_instance, e='self.cfg.entries_keep') + '\n' + pp(
+ self.cfg.entries_keep))
+ return
+
+ self.keep_entry_dns = copy.copy(self.cfg.entries_keep[self.tgt_instance])
# -------------------------------------------------------------------------
def _check_source_instance(self):