move tape_encryption_keys.rs to pbs_config workspace
This commit is contained in:
@ -27,18 +27,13 @@ use proxmox::{
|
||||
sys::error::SysResult,
|
||||
};
|
||||
|
||||
use pbs_api_types::Fingerprint;
|
||||
use pbs_api_types::{
|
||||
Fingerprint, MamAttribute, LtoDriveAndMediaStatus, LtoTapeDrive, Lp17VolumeStatistics,
|
||||
};
|
||||
use pbs_config::key_config::KeyConfig;
|
||||
use pbs_tools::run_command;
|
||||
|
||||
use crate::{
|
||||
config,
|
||||
api2::types::{
|
||||
MamAttribute,
|
||||
LtoDriveAndMediaStatus,
|
||||
LtoTapeDrive,
|
||||
Lp17VolumeStatistics,
|
||||
},
|
||||
tape::{
|
||||
TapeRead,
|
||||
TapeWrite,
|
||||
@ -378,7 +373,7 @@ impl TapeDriver for LtoTapeHandle {
|
||||
|
||||
if let Some((ref key_fingerprint, ref uuid)) = key_fingerprint {
|
||||
|
||||
let (key_map, _digest) = config::tape_encryption_keys::load_keys()?;
|
||||
let (key_map, _digest) = pbs_config::tape_encryption_keys::load_keys()?;
|
||||
match key_map.get(key_fingerprint) {
|
||||
Some(item) => {
|
||||
|
||||
|
@ -14,6 +14,7 @@ use anyhow::{bail, Error};
|
||||
use proxmox::tools::Uuid;
|
||||
|
||||
use pbs_datastore::task_log;
|
||||
use pbs_config::tape_encryption_keys::load_key_configs;
|
||||
|
||||
use crate::{
|
||||
backup::{
|
||||
@ -42,7 +43,6 @@ use crate::{
|
||||
media_changer,
|
||||
},
|
||||
},
|
||||
config::tape_encryption_keys::load_key_configs,
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user