esxi: clean-up state-dir in deactivate storage

to ensure we always query a new one on quick add-delete-add cycles.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2024-03-12 18:33:15 +01:00
parent 72418e2f05
commit 68f3ec3f8b

View File

@ -346,6 +346,10 @@ sub deactivate_storage {
my ($class, $storeid, $scfg, $cache) = @_;
$class->esxi_unmount($storeid, $scfg);
my $rundir = run_path($storeid);
remove_tree($rundir); # best-effort, ignore errors for now
}
sub activate_volume {