]> git.proxmox.com Git - pve-manager.git/commitdiff
api: replication job status: allow querying disabled jobs too
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 30 May 2023 11:32:52 +0000 (13:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 16:43:32 +0000 (18:43 +0200)
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 <f.ebner@proxmox.com>
PVE/API2/Replication.pm

index d70b4607d75ffe1167dd543e36f3b19fc329cf93..89c5a802f304fad3a2f547c6cd43a4906d08e7a3 100644 (file)
@@ -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};