Skip to content

Commit 0665485

Browse files
committed
fix: hub_urls naming
Signed-off-by: nabil salah <nabil.salah203@gmail.com>
1 parent 0e4a3e2 commit 0665485

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
@@ -14,7 +14,7 @@ struct ZosConfig {
1414
hub_urls: Vec<String>,
1515
}
1616

17-
fn get_hub_url(runmode: &RunMode) -> Result<Vec<String>> {
17+
fn get_hub_urls(runmode: &RunMode) -> Result<Vec<String>> {
1818
let base_url = "https://github.com/threefoldtech/zos-config/raw/main/";
1919
let config_filename = match runmode {
2020
RunMode::Prod => "production.json",
@@ -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.hub_urls.is_empty() {
4747
Ok(fallback)
4848
} else {
49-
Ok(config.hub_url)
49+
Ok(config.hub_urls)
5050
}
5151
}
5252

@@ -86,7 +86,7 @@ impl Repo {
8686
T: AsRef<str>,
8787
{
8888
let config = crate::config::Config::current()?;
89-
let hub = get_hub_url(&config.runmode)?;
89+
let hub = get_hub_urls(&config.runmode)?;
9090
Ok(Repo {
9191
name: String::from(name.as_ref()),
9292
hub,

0 commit comments

Comments
 (0)