From 72418e2f05dcb7470502189e31ec0cf8f648f939 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 12 Mar 2024 18:34:04 +0100 Subject: [PATCH] esxi: deactivate storage on deletion from config Signed-off-by: Thomas Lamprecht --- src/PVE/Storage/ESXiPlugin.pm | 3 +++ 1 file changed, 3 insertions(+) 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;