[pve-devel] [PATCH pve-container v3 2/3] fix #3903: api2: remove vmid from jobs.cfg
Hannes Laimer
h.laimer at proxmox.com
Mon Mar 14 10:26:56 CET 2022
... on destroy if 'purge' is selected
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
v2->v3: no changes
src/PVE/API2/LXC.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 84712f7..095f421 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -16,6 +16,7 @@ use PVE::Storage;
use PVE::RESTHandler;
use PVE::RPCEnvironment;
use PVE::ReplicationConfig;
+use PVE::Jobs;
use PVE::LXC;
use PVE::LXC::Create;
use PVE::LXC::Migrate;
@@ -758,6 +759,7 @@ __PACKAGE__->register_method({
print "purging CT $vmid from related configurations..\n";
PVE::ReplicationConfig::remove_vmid_jobs($vmid);
PVE::VZDump::Plugin::remove_vmid_from_backup_jobs($vmid);
+ PVE::Jobs::remove_vmid_from_jobs($vmid);
if ($ha_managed) {
PVE::HA::Config::delete_service_from_config("ct:$vmid");
--
2.30.2
More information about the pve-devel
mailing list