]> git.proxmox.com Git - pve-storage.git/commit
dir plugin: get notes: return undef if notes are not supported
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 30 Sep 2021 11:42:05 +0000 (13:42 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 8 Nov 2021 13:56:15 +0000 (14:56 +0100)
commite0aa2070f61c953f326f9205fd107f9d6ed12718
tree05d0e8b61ce74911f5694178c5add8dd06663c88
parentddb3263031940daaf4298b3075391d992a08057c
dir plugin: get notes: return undef if notes are not supported

This avoids showing empty notes in the result of the content/{volid}
API call for volumes that do not even support notes. It's also in
preparation for the proposed get_volume_attribute generalization,
which expects undef to be returned when an attribute is not supported.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/DirPlugin.pm