def get_remote_site_list(self) -> List[DrSite]: return [ DrSite( DrRole(conf_site["role"]), [node["name"] for node in conf_site["nodes"]], ) for conf_site in self._config.get("remote_sites", []) ]
def local_role(self) -> DrRole: return DrRole(self._config["local"]["role"])