def _resolve_servers_for_domain(self, domain, force=False): """Resolve domain controllers for a domain.""" if self.m_use_system_config: return if domain in self.m_domains and not force: return locator = factory(Locator) result = locator.locate_many(domain) self.m_domains[domain] = list(result) # Re-init every time self._init_config() self._write_config() self._activate_config()
def _locator(self): """Return our resource locator.""" if self.m_locator is None: self.m_locator = factory(Locator) return self.m_locator