File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments