mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 13:44:33 +00:00
config: Make function to get the default conf file public
This will be used by the kata-env command. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
7565b33568
commit
68f6357731
@ -196,7 +196,7 @@ impl TomlConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Probe configuration file according to the default configuration file list.
|
/// Probe configuration file according to the default configuration file list.
|
||||||
fn get_default_config_file() -> Result<PathBuf> {
|
pub fn get_default_config_file() -> Result<PathBuf> {
|
||||||
for f in default::DEFAULT_RUNTIME_CONFIGURATIONS.iter() {
|
for f in default::DEFAULT_RUNTIME_CONFIGURATIONS.iter() {
|
||||||
if let Ok(path) = fs::canonicalize(f) {
|
if let Ok(path) = fs::canonicalize(f) {
|
||||||
return Ok(path);
|
return Ok(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user