mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
Merge pull request #8558 from jodh-intel/load-config-improvement
runtime-rs: Show config files attempted on config load failure
This commit is contained in:
@@ -216,6 +216,14 @@ impl TomlConfig {
|
||||
|
||||
Err(io::Error::from(io::ErrorKind::NotFound))
|
||||
}
|
||||
|
||||
/// Return a list of default config file paths.
|
||||
pub fn get_default_config_file_list() -> Vec<PathBuf> {
|
||||
default::DEFAULT_RUNTIME_CONFIGURATIONS
|
||||
.iter()
|
||||
.map(|s| PathBuf::from(*s))
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
||||
/// Validate the `path` matches one of the pattern in `patterns`.
|
||||
|
||||
Reference in New Issue
Block a user