]> git.proxmox.com Git - pve-storage.git/commitdiff
esxi: status: mark as active if its mounted
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 18:12:06 +0000 (19:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 18:12:06 +0000 (19:12 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Storage/ESXiPlugin.pm

index ff34aaa540ed83e41c4422602d2191bb7ee14b7d..4212c36580aa8f4e015a555a1c255d388d771eae 100644 (file)
@@ -405,7 +405,9 @@ sub check_connection {
 sub status {
     my ($class, $storeid, $scfg, $cache) = @_;
 
-    return (0, 0, 0, 0);
+    my $active = is_mounted($storeid) ? 1 : 0;
+
+    return (0, 0, 0, $active);
 }
 
 sub parse_volname {