Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core-dump-composer/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extern crate dotenv;

use clap::{App, Arg, ArgMatches};
use libcrio::ImageCommand;
use log::error;
Expand Down Expand Up @@ -71,6 +73,11 @@ impl CoreConfig {
dot_env_path.pop();
dot_env_path.push(".env");

match dotenv::from_path(dot_env_path.clone()) {
Ok(v) => v,
Err(e) => error!("error loading .env file {}", e),
}

let mut crictl_config_path = env::current_exe()?;
crictl_config_path.pop();
crictl_config_path.push("crictl.yaml");
Expand Down