move fingerprint helpers from pbs-tools to pbs-api-types

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer
2021-11-17 07:07:40 +01:00
parent 96ec3801a9
commit c42a54795d
8 changed files with 47 additions and 49 deletions

View File

@ -317,7 +317,7 @@ impl TapeDriver for LtoTapeHandle {
}
let output = if let Some((fingerprint, uuid)) = key_fingerprint {
let fingerprint = pbs_tools::format::as_fingerprint(fingerprint.bytes());
let fingerprint = fingerprint.to_string();
run_sg_tape_cmd("encryption", &[
"--fingerprint", &fingerprint,
"--uuid", &uuid.to_string(),