mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-23 17:34:34 +03:00
catch exception
This commit is contained in:
parent
55dea49287
commit
7028645e2e
@ -661,7 +661,9 @@ sub storage_info {
|
||||
next if !$info->{$storeid};
|
||||
|
||||
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||
my ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache);
|
||||
my ($total, $avail, $used, $active);
|
||||
eval { ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache); };
|
||||
warn $@ if $@;
|
||||
next if !$active;
|
||||
$info->{$storeid}->{total} = $total;
|
||||
$info->{$storeid}->{avail} = $avail;
|
||||
|
Loading…
Reference in New Issue
Block a user