mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
1fefdecbe7
commit
6d7cdb9e10
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user