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:
Archana Shinde 2023-04-13 23:13:45 -07:00
parent 7565b33568
commit 68f6357731

View File

@ -196,7 +196,7 @@ impl TomlConfig {
}
/// 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() {
if let Ok(path) = fs::canonicalize(f) {
return Ok(path);