From 68f63577319bb0f78d9d798a14d5859ffb5eec31 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Thu, 13 Apr 2023 23:13:45 -0700 Subject: [PATCH] config: Make function to get the default conf file public This will be used by the kata-env command. Signed-off-by: Archana Shinde --- src/libs/kata-types/src/config/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/kata-types/src/config/mod.rs b/src/libs/kata-types/src/config/mod.rs index 173026921..2a696922a 100644 --- a/src/libs/kata-types/src/config/mod.rs +++ b/src/libs/kata-types/src/config/mod.rs @@ -196,7 +196,7 @@ impl TomlConfig { } /// Probe configuration file according to the default configuration file list. - fn get_default_config_file() -> Result { + pub fn get_default_config_file() -> Result { for f in default::DEFAULT_RUNTIME_CONFIGURATIONS.iter() { if let Ok(path) = fs::canonicalize(f) { return Ok(path);