public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-cluster] cluster config: mark qdevice end point as protected
@ 2022-05-11  9:27 Stefan Sterz
  2022-05-11  9:28 ` Oguz Bektas
  2022-05-11 10:14 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Sterz @ 2022-05-11  9:27 UTC (permalink / raw)
  To: pve-devel

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@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-11 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  9:27 [pve-devel] [PATCH pve-cluster] cluster config: mark qdevice end point as protected Stefan Sterz
2022-05-11  9:28 ` Oguz Bektas
2022-05-11 10:14 ` [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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal