esxi: deactivate storage on deletion from config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2024-03-12 18:34:04 +01:00
parent 2ff6f99c60
commit 72418e2f05

View File

@ -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;