From afeda182566292be15413d9b874720876eac14c9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 23 Nov 2020 15:12:46 +0100 Subject: [PATCH] plugin: hooks: avoid that method param count gets returned Signed-off-by: Thomas Lamprecht --- PVE/Storage/Plugin.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index fe56864..94d42eb 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -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 {