diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index 7ec7164..36339db 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -168,6 +168,8 @@ sub on_add_hook { } else { cifs_delete_credentials($storeid); } + + return; } sub on_update_hook { @@ -183,12 +185,16 @@ sub on_update_hook { } else { cifs_delete_credentials($storeid); } + + return; } sub on_delete_hook { my ($class, $storeid, $scfg) = @_; cifs_delete_credentials($storeid); + + return; } sub status { diff --git a/PVE/Storage/CephFSPlugin.pm b/PVE/Storage/CephFSPlugin.pm index 880ec05..8eb7c70 100644 --- a/PVE/Storage/CephFSPlugin.pm +++ b/PVE/Storage/CephFSPlugin.pm @@ -170,6 +170,8 @@ sub on_add_hook { return if defined($scfg->{monhost}); # nothing to do if not pve managed ceph PVE::CephConfig::ceph_create_keyfile($scfg->{type}, $storeid); + + return; } sub on_delete_hook { @@ -178,6 +180,8 @@ sub on_delete_hook { return if defined($scfg->{monhost}); # nothing to do if not pve managed ceph PVE::CephConfig::ceph_remove_keyfile($scfg->{type}, $storeid); + + return; } sub status { diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm index c0740d4..73e8e48 100644 --- a/PVE/Storage/LVMPlugin.pm +++ b/PVE/Storage/LVMPlugin.pm @@ -269,6 +269,8 @@ sub on_add_hook { lvm_create_volume_group($path, $scfg->{vgname}, $scfg->{shared}); } + + return; } sub parse_volname { diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index d1db4a9..380c976 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -452,6 +452,8 @@ sub on_delete_hook { pbs_delete_password($scfg, $storeid); pbs_delete_encryption_key($scfg, $storeid); + + return; } sub parse_volname { diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 94df89d..fab6d57 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -317,6 +317,8 @@ sub on_add_hook { return if defined($scfg->{monhost}); # nothing to do if not pve managed ceph PVE::CephConfig::ceph_create_keyfile($scfg->{type}, $storeid); + + return; } sub on_delete_hook { @@ -325,6 +327,8 @@ sub on_delete_hook { return if defined($scfg->{monhost}); # nothing to do if not pve managed ceph PVE::CephConfig::ceph_remove_keyfile($scfg->{type}, $storeid); + + return; } sub parse_volname { diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 2f0a80a..3054331 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -133,6 +133,8 @@ sub on_add_hook { } else { $scfg->{mountpoint} = $mountpoint; } + + return; } sub path {