[pve-devel] [PATCH pve-cluster] cluster config: mark qdevice end point as protected

Stefan Sterz s.sterz at proxmox.com
Wed May 11 11:27:07 CEST 2022


this allows the end point to retrieve data from the qdevice properly
by leveraging pve-daemon. fixes an issue where the api would return an
empty object.

Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
 data/PVE/API2/ClusterConfig.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/PVE/API2/ClusterConfig.pm b/data/PVE/API2/ClusterConfig.pm
index 5a6a1ac..e7efe37 100644
--- a/data/PVE/API2/ClusterConfig.pm
+++ b/data/PVE/API2/ClusterConfig.pm
@@ -661,6 +661,7 @@ __PACKAGE__->register_method ({
     name => 'status',
     path => 'qdevice',
     method => 'GET',
+    protected => 1,
     description => 'Get QDevice status',
     permissions => {
 	check => ['perm', '/', [ 'Sys.Audit' ]],
-- 
2.30.2





More information about the pve-devel mailing list