]> git.proxmox.com Git - pve-storage.git/commit
zfs: list zvol: return empty hash rather than undef
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 10 Jan 2023 12:52:41 +0000 (13:52 +0100)
committerWolfgang Bumiller <w.bumiller@errno.eu>
Tue, 10 Jan 2023 13:28:14 +0000 (14:28 +0100)
commitebcb12ee0961c478e46af8dd566a5a5ec53c5b41
treedf6502c572a90db48d59668c96d49dbda65aab09
parentb539bb46a8037bd1e11966ccf66b95a636a0f019
zfs: list zvol: return empty hash rather than undef

Avoids the need for the fallback for the (only existing) caller.

Note that the old my $list = (); is a rather intransparent way of
assigning undef.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm