* [pve-devel] [PATCH manager] api: replication job status: allow querying disabled jobs too
@ 2023-05-30 11:32 Fiona Ebner
2023-06-07 16:43 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2023-05-30 11:32 UTC (permalink / raw)
To: pve-devel
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 | 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};
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH manager] api: replication job status: allow querying disabled jobs too
2023-05-30 11:32 [pve-devel] [PATCH manager] api: replication job status: allow querying disabled jobs too Fiona Ebner
@ 2023-06-07 16:43 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-06-07 16:43 UTC (permalink / raw)
To: Proxmox VE development discussion, Fiona Ebner
Am 30/05/2023 um 13:32 schrieb Fiona Ebner:
> 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 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-07 16:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 11:32 [pve-devel] [PATCH manager] api: replication job status: allow querying disabled jobs too Fiona Ebner
2023-06-07 16:43 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox