Esempio n. 1
0
 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", [])
     ]
Esempio n. 2
0
 def local_role(self) -> DrRole:
     return DrRole(self._config["local"]["role"])