5
0
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:
Dietmar Maurer 2012-07-19 11:22:35 +02:00
parent 55dea49287
commit 7028645e2e

View File

@ -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;