]> git.proxmox.com Git - pve-guest-common.git/commit - src/PVE/Replication.pm
replication: avoid passing removed storages to target
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 23 Jun 2023 10:08:11 +0000 (12:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Aug 2023 09:52:56 +0000 (11:52 +0200)
commit018565379e4707dcc6ce21c7b28de2e10edd2093
tree6adfe91e64bf84746b842cf0fd72023ac16709f5
parent8a81208e4d8c7c4f03c890671190e3b56124ba13
replication: avoid passing removed storages to target

After removing a storage, replication states can still contain
references to it, even if no volume references it anymore.

If a storage does not exist in the storage configuration, the
replication target runs into an error when preparing the job locally.
This error prevents both running and removing the replication job. Fix
it by not passing the invalid storage ID in the first place.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/Replication.pm