[pbs-devel] [PATCH proxmox-backup-qemu 2/2] restore: improve error if key is missing
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Nov 20 17:38:45 CET 2020
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Notes: regular users should never run into this check, since we first
restore the config file via proxmox-backup-client, which already checks
this and fails.
requires proxmox-backup patches from this series
src/restore.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/restore.rs b/src/restore.rs
index 6cba71f..24983dd 100644
--- a/src/restore.rs
+++ b/src/restore.rs
@@ -92,6 +92,7 @@ impl RestoreTask {
).await?;
let (manifest, _) = client.download_manifest().await?;
+ manifest.check_fingerprint(self.crypt_config.as_ref().map(Arc::as_ref))?;
self.manifest.set(Arc::new(manifest))
.map_err(|_| format_err!("already connected!"))?;
--
2.20.1
More information about the pbs-devel
mailing list