replication: delete job even if it is disabled

Currently we skip all disabled jobs, also the ones up for deletion,
which does not make sense. This came up in support.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Link: https://lore.proxmox.com/20250407085138.4653-1-h.laimer@proxmox.com
This commit is contained in:
Hannes Laimer 2025-04-07 10:51:38 +02:00 committed by Thomas Lamprecht
parent 29721ba4b2
commit de2ddf940a

View File

@ -272,7 +272,7 @@ sub job_status {
# never sync to local node
next if !$jobcfg->{remove_job} && $target eq $local_node;
next if !$get_disabled && $jobcfg->{disable};
next if !$jobcfg->{remove_job} && !$get_disabled && $jobcfg->{disable};
my $state = extract_job_state($stateobj, $jobcfg);
$jobcfg->{state} = $state;