]> git.proxmox.com Git - qemu-server.git/commit
vzdump: pbs: factor out getting and checking encryption keys
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Jul 2023 15:42:11 +0000 (17:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 6 Jul 2023 15:44:18 +0000 (17:44 +0200)
commit3234f5639d0725ab5f5f74affeef5ec93d0eb095
treebd4fef1715510f936b88f23368787fb96e9abf44
parent76690de1e9bf73e4d1a80404cecce14c1ef23426
vzdump: pbs: factor out getting and checking encryption keys

factor the common checks for disk-less and "normal" backups out into
its own helper, avoiding code duplication and ensuring that the
messages and checks stay in sync.

The use sites for key and master key are a bit clearer, as it all
just depends on them being defined or not.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm