]> git.proxmox.com Git - pve-storage.git/commitdiff
catch exception
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 19 Jul 2012 09:22:35 +0000 (11:22 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 19 Jul 2012 09:22:35 +0000 (11:22 +0200)
PVE/Storage.pm

index 4b0805c5a7586a2bfc20cf5ecbb26df88a81b745..92dcc546ef0a4678f3c6b60015aec0d2d08d7e7a 100755 (executable)
@@ -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;