mirror of
https://github.com/katanemo/plano.git
synced 2026-05-21 13:55:15 +02:00
fix: use correct PLANO_CONFIG_PATH_RENDERED env var name
This commit is contained in:
parent
96a2ebf37a
commit
9748cdd857
1 changed files with 2 additions and 2 deletions
|
|
@ -71,10 +71,10 @@ fn cors_preflight() -> Result<Response<BoxBody<Bytes, hyper::Error>>, hyper::Err
|
|||
|
||||
/// Load and parse the YAML configuration file.
|
||||
///
|
||||
/// The path is read from `ARCH_CONFIG_PATH_RENDERED` (env) or falls back to
|
||||
/// The path is read from `PLANO_CONFIG_PATH_RENDERED` (env) or falls back to
|
||||
/// `./arch_config_rendered.yaml`.
|
||||
fn load_config() -> Result<Configuration, Box<dyn std::error::Error + Send + Sync>> {
|
||||
let path = env::var("ARCH_CONFIG_PATH_RENDERED")
|
||||
let path = env::var("PLANO_CONFIG_PATH_RENDERED")
|
||||
.unwrap_or_else(|_| "./arch_config_rendered.yaml".to_string());
|
||||
eprintln!("loading arch_config.yaml from {}", path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue