refactor: Big internal refactor
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Deserializer, Serialize};
|
||||
|
||||
use crate::get_talos_config_path;
|
||||
use crate::get_talos_path;
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase", untagged)]
|
||||
@@ -18,7 +18,7 @@ where
|
||||
let value = match secret {
|
||||
SecretHelper::String(value) => value,
|
||||
SecretHelper::File { file } => {
|
||||
let path = get_talos_config_path().join("secrets").join(file);
|
||||
let path = get_talos_path().join("secrets").join(file);
|
||||
std::fs::read_to_string(path).unwrap().trim().to_owned()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user