(region_id: &str)
| 903 | } |
| 904 | |
| 905 | pub fn get_force_gws_private(region_id: &str) -> Result<bool> { |
| 906 | let conf = get(); |
| 907 | for region in &conf.regions { |
| 908 | if region.id == region_id { |
| 909 | return Ok(region.gateway.force_gws_private); |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | Err(anyhow!("region_config_id not found")) |
| 914 | } |
| 915 | |
| 916 | pub fn get_region_network(region_id: &str) -> Result<RegionNetwork> { |
| 917 | let conf = get(); |
no test coverage detected