pvsecret: Improve documentation for duplicated secret IDs

Reviewed-by: Finn Callies <fcallies@linux.ibm.com>
Tested-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2025-04-23 11:24:29 +02:00
committed by Jan Höppner
parent 1fefdecbe7
commit 6d7cdb9e10
4 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ pub fn add(opt: &AddSecretOpt) -> Result<()> {
AddCmd::new(&mut rd_in).context(format!("Processing input file {}", opt.input))?;
if let Some(id) = AddSecretRequest::bin_id(cmd.data().unwrap())? {
if !list_uvc(&uv)?.iter().any(|e| e.id() == id.as_ref()) {
if list_uvc(&uv)?.iter().any(|e| e.id() == id.as_ref()) {
warn!("There is already a secret in the secret store with that id. Adding the secret anyways.");
}
}