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 <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2023-05-30 13:32:52 +02:00 committed by Thomas Lamprecht
parent 8bb027f820
commit e81a10a4ab

View 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};