[pve-devel] [PATCH qemu-server 3/3] fix #3903: api2: remove vmid from jobs.cfg
Hannes Laimer
h.laimer at proxmox.com
Tue Mar 1 09:51:53 CET 2022
... on destroy if 'purge' is selected
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
PVE/API2/Qemu.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 9be1caf..f100d2c 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1696,6 +1696,7 @@ __PACKAGE__->register_method({
print "purging VM $vmid from related configurations..\n";
PVE::ReplicationConfig::remove_vmid_jobs($vmid);
PVE::VZDump::Plugin::remove_vmid_from_backup_jobs($vmid);
+ PVE::Jobs::Plugin::remove_vmid_from_jobs($vmid);
if ($ha_managed) {
PVE::HA::Config::delete_service_from_config("vm:$vmid");
--
2.30.2
More information about the pve-devel
mailing list