[pve-devel] [PATCH pve-container 2/3] fix #3903: api2: remove vmid from jobs.cfg

Fabian Ebner f.ebner at proxmox.com
Wed Mar 2 11:16:38 CET 2022


Am 01.03.22 um 09:51 schrieb Hannes Laimer:
> ... on destroy if 'purge' is selected
> 
> Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
> ---
>  src/PVE/API2/LXC.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
> index 84712f7..2e4146e 100644
> --- a/src/PVE/API2/LXC.pm
> +++ b/src/PVE/API2/LXC.pm
> @@ -758,6 +758,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::Plugin::remove_vmid_from_jobs($vmid);

Should add a
    use PVE::Jobs::Plugin;
(or PVE::Jobs if the function is moved there) to the imports.

Same for the next patch.

>  
>  		if ($ha_managed) {
>  		    PVE::HA::Config::delete_service_from_config("ct:$vmid");





More information about the pve-devel mailing list