From e81a10a4ab1af19ca35a992a357028f1d38552dc Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Tue, 30 May 2023 13:32:52 +0200 Subject: [PATCH] api: replication job status: allow querying disabled jobs too Rather than failing with an error claiming that the job doesn't exist. The disabled status will be visible in the result of the call. Signed-off-by: Fiona Ebner --- PVE/API2/Replication.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm index d70b4607..89c5a802 100644 --- a/PVE/API2/Replication.pm +++ b/PVE/API2/Replication.pm @@ -296,7 +296,7 @@ __PACKAGE__->register_method ({ my $rpcenv = PVE::RPCEnvironment::get(); my $authuser = $rpcenv->get_user(); - my $jobs = PVE::ReplicationState::job_status(); + my $jobs = PVE::ReplicationState::job_status(1); my $jobid = $param->{id}; my $jobcfg = $jobs->{$jobid};