From 7028645e2e4562d4b7fa83277ccdf46263b928a9 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 19 Jul 2012 11:22:35 +0200 Subject: [PATCH] catch exception --- PVE/Storage.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 4b0805c..92dcc54 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -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; -- 2.39.2