diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index 5090a13..c4795c4 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -328,6 +328,9 @@ sub on_update_hook { sub on_delete_hook { my ($class, $storeid, $scfg) = @_; + eval { $class->deactivate_storage($storeid, $scfg) }; + warn $@ if $@; + esxi_delete_credentials($storeid); return;