]> git.proxmox.com Git - pve-guest-common.git/commitdiff
replication job_status: add get_disabled parameter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Jun 2017 08:08:28 +0000 (10:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 08:42:19 +0000 (10:42 +0200)
allows the API/frontend to get the disabled jobs easier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/ReplicationState.pm

index 09f628313954992a6ef4fbbebe918797be5c56ea..83ffa5b82797f0f1de0cb7c202301afabd18a5f0 100644 (file)
@@ -227,6 +227,7 @@ sub purge_old_states {
 }
 
 sub job_status {
+    my ($get_disabled) = @_;
 
     my $local_node = PVE::INotify::nodename();
 
@@ -255,7 +256,7 @@ sub job_status {
            # never sync to local node
            next if $target eq $local_node;
 
-           next if $jobcfg->{disable};
+           next if !$get_disabled && $jobcfg->{disable};
        }
 
        my $state = extract_job_state($stateobj, $jobcfg);