esxi: deactivate storage on deletion from config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -328,6 +328,9 @@ sub on_update_hook {
|
|||||||
sub on_delete_hook {
|
sub on_delete_hook {
|
||||||
my ($class, $storeid, $scfg) = @_;
|
my ($class, $storeid, $scfg) = @_;
|
||||||
|
|
||||||
|
eval { $class->deactivate_storage($storeid, $scfg) };
|
||||||
|
warn $@ if $@;
|
||||||
|
|
||||||
esxi_delete_credentials($storeid);
|
esxi_delete_credentials($storeid);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user