]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/LVMPlugin.pm
plugin: hooks: add explicit returns
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 27 Nov 2020 09:35:44 +0000 (10:35 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 27 Nov 2020 09:45:42 +0000 (10:45 +0100)
commitf3ccd0ef3d6b3d3031b64f514d997fd9c25a873b
tree2bc842e3f6811099ddeaff7cbd55a4a95217924c
parent74dcca3a4884998c36c24aa59c9f2bd3134ba8fb
plugin: hooks: add explicit returns

to avoid returning something unexpected. Finish what
afeda182566292be15413d9b874720876eac14c9 already started for all the other
plugins. At least for ZFS's on_add_hook this is necessary (adding a ZFS storage
currently fails as reported here [0]), but it cannot hurt
in the other places either as the only hooks we expect to return something
currently are PBS's on_add_hook and on_update_hook.

[0]: https://forum.proxmox.com/threads/gui-add-zfs-storage-verification-failed-400-config-type-check-object-failed.79734/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/CIFSPlugin.pm
PVE/Storage/CephFSPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/PBSPlugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/ZFSPoolPlugin.pm