From 27ba2c031865dc7e80c45948c6071821d141af9f Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Wed, 26 Mar 2025 11:51:42 +0100 Subject: [PATCH] pbs-client: make get_secret_from_env private Since we are exposing functions now to get the password and encryption password this should be private. Signed-off-by: Maximiliano Sandoval --- pbs-client/src/tools/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-client/src/tools/mod.rs b/pbs-client/src/tools/mod.rs index d231ab56..3b19df39 100644 --- a/pbs-client/src/tools/mod.rs +++ b/pbs-client/src/tools/mod.rs @@ -85,7 +85,7 @@ fn get_credential(cred_name: &str) -> std::io::Result>> { /// BASE_NAME_CMD => read the secret from specified command first line of output on stdout /// /// Only return the first line of data (without CRLF). -pub fn get_secret_from_env(base_name: &str) -> Result, Error> { +fn get_secret_from_env(base_name: &str) -> Result, Error> { let firstline = |data: String| -> String { match data.lines().next() { Some(line) => line.to_string(),