]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
api: status: include empty entry for stores with ns-only privs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 26 May 2022 11:36:12 +0000 (13:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 27 May 2022 08:55:48 +0000 (10:55 +0200)
commit84de101272b9f995c7ca7431c7b8a0d900813dc1
tree245cc369f00bfcfbbac71f7156f4bf93a0e1ad43
parentde77a20d3d30ee7eece5d8eae10d3d5dbc56ad12
api: status: include empty entry for stores with ns-only privs

I.e., for those that only got permissions on a sub namespace and
those that onlöy got BACKUP_READ, as both they could just list and
count themselves too after all, so not exactly secret info.

The UI needs some adaptions to cope with gc-stats and usage being
optional, will be done in a next commit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/api2/admin/datastore.rs
src/api2/status.rs