[pve-devel] [PATCH guest-common 1/2] replication job_status: add get_disabled parameter
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jun 29 10:08:28 CEST 2017
allows the API/frontend to get the disabled jobs easier
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
PVE/ReplicationState.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/ReplicationState.pm b/PVE/ReplicationState.pm
index b817f08..88a2daf 100644
--- a/PVE/ReplicationState.pm
+++ b/PVE/ReplicationState.pm
@@ -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);
--
2.11.0
More information about the pve-devel
mailing list