From: Lukas Sichert <l.sichert@proxmox.com>
To: pdm-devel@lists.proxmox.com
Cc: Lukas Sichert <l.sichert@proxmox.com>
Subject: [PATCH manager 3/4] fix #7315: types: add missing storage flag to json schema
Date: Mon, 2 Mar 2026 14:45:36 +0100 [thread overview]
Message-ID: <20260302134537.108696-4-l.sichert@proxmox.com> (raw)
In-Reply-To: <20260302134537.108696-1-l.sichert@proxmox.com>
The response to the API-call '/cluster/resources' includes a shared flag
for storages, that are also seen by other nodes in the cluster. But as
this is not listed in the schema, the proxmox-datacenter backend
cannot access the value.
Add the missing `shared` boolean field to the schema definition of the
API handler so the value is properly exposed.
Signed-off-by: Lukas Sichert <l.sichert@proxmox.com>
---
PVE/API2/Cluster.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index d6003a7d..062abaee 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -428,6 +428,11 @@ __PACKAGE__->register_method({
format => 'pve-storage-content-list',
optional => 1,
},
+ shared => {
+ description => "Determines if the storage is shared",
+ type => 'boolean',
+ optional => 1,
+ },
plugintype => {
description => "More specific type, if available.",
type => 'string',
--
2.47.3
next prev parent reply other threads:[~2026-03-02 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 13:45 [PATCH api-types/manager/datacenter-manager 0/4] fix #7315: datacenter-manager: fix wrong calculation of total storage Lukas Sichert
2026-03-02 13:45 ` [PATCH proxmox 1/4] fix #7315: generate: add support for new certificate variant Lukas Sichert
2026-03-02 13:45 ` SPAM: [PATCH proxmox 2/4] fix #7315: run make refresh Lukas Sichert
2026-03-02 13:45 ` Lukas Sichert [this message]
2026-03-02 13:51 ` [PATCH manager 3/4] fix #7315: types: add missing storage flag to json schema Dominik Rusovac
2026-03-02 13:45 ` [PATCH datacenter-manager 4/4] fix #7135: ui: correct calculations for shared storages Lukas Sichert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260302134537.108696-4-l.sichert@proxmox.com \
--to=l.sichert@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox