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 committed 2021-11-17 07:07:40 +01:00
1 parent 96ec3801a9
commit c42a54795d
8 files changed
+47 -49

No files matched your search

+1 -1
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(),