mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-04-28 12:34:03 +00:00
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:
parent
29721ba4b2
commit
de2ddf940a
@ -272,7 +272,7 @@ sub job_status {
|
|||||||
# never sync to local node
|
# never sync to local node
|
||||||
next if !$jobcfg->{remove_job} && $target eq $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);
|
my $state = extract_job_state($stateobj, $jobcfg);
|
||||||
$jobcfg->{state} = $state;
|
$jobcfg->{state} = $state;
|
||||||
|
Loading…
Reference in New Issue
Block a user