Skip to content

Commit dce4cc2

Browse files
committed
fixes bootsrap booting from hub.grid.tf instead of v4.hub
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent 4a9b5f1 commit dce4cc2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bootstrap/bootstrap/src/hub.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::path::Path;
1111

1212
#[derive(Deserialize)]
1313
struct ZosConfig {
14-
hub_url: Vec<String>,
14+
v4hub_url: Vec<String>,
1515
}
1616

1717
fn get_hub_url(runmode: &RunMode) -> Result<Vec<String>> {
@@ -24,7 +24,7 @@ fn get_hub_url(runmode: &RunMode) -> Result<Vec<String>> {
2424
};
2525

2626
let config_url = format!("{}/{}", base_url, config_filename);
27-
let fallback = vec!["https://hub.grid.tf".to_string()];
27+
let fallback = vec!["https://v4.hub.grid.tf".to_string()];
2828

2929
let hub_urls = retry(Exponential::from_millis(1000).take(5), || {
3030
match get(config_url.as_str()) {
@@ -43,10 +43,10 @@ fn get_hub_url(runmode: &RunMode) -> Result<Vec<String>> {
4343
Err(_) => return Ok(fallback),
4444
};
4545

46-
if config.hub_url.is_empty() {
46+
if config.v4hub_url.is_empty() {
4747
Ok(fallback)
4848
} else {
49-
Ok(config.hub_url)
49+
Ok(config.v4hub_url)
5050
}
5151
}
5252

0 commit comments

Comments
 (0)