catch exception
This commit is contained in:
@ -661,7 +661,9 @@ sub storage_info {
|
|||||||
next if !$info->{$storeid};
|
next if !$info->{$storeid};
|
||||||
|
|
||||||
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
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;
|
next if !$active;
|
||||||
$info->{$storeid}->{total} = $total;
|
$info->{$storeid}->{total} = $total;
|
||||||
$info->{$storeid}->{avail} = $avail;
|
$info->{$storeid}->{avail} = $avail;
|
||||||
|
|||||||
Reference in New Issue
Block a user