]> git.proxmox.com Git - pve-storage.git/commitdiff
plugin: hooks: avoid that method param count gets returned
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 14:12:46 +0000 (15:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Nov 2020 14:12:58 +0000 (15:12 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm

index fe56864cc177e512bbe3e50df2f688700cd708a3..94d42eb48fc418cdd97e5eba6da2f334b63c981d 100644 (file)
@@ -419,6 +419,7 @@ sub on_add_hook {
     my ($class, $storeid, $scfg, %param) = @_;
 
     # do nothing by default
+    return undef;
 }
 
 # called during storage configuration update (before the updated storage config got written)
@@ -428,6 +429,7 @@ sub on_update_hook {
     my ($class, $storeid, $scfg, %param) = @_;
 
     # do nothing by default
+    return undef;
 }
 
 # called during deletion of storage (before the new storage config got written)
@@ -439,6 +441,7 @@ sub on_delete_hook {
     my ($class, $storeid, $scfg) = @_;
 
     # do nothing by default
+    return undef;
 }
 
 sub cluster_lock_storage {