From d73060becde037ef30a977960610255fbed8a588 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 10 Aug 2015 10:05:01 +0200 Subject: [PATCH] storage_info: fix content filter List all storages if $content filter is undefined. --- PVE/Storage.pm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 7b3dc70..55af5ee 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -890,15 +890,17 @@ sub storage_info { next if !storage_check_enabled($cfg, $storeid, undef, 1); - my $want_ctype = 0; - foreach my $ctype (@ctypes) { - if ($ids->{$storeid}->{content}->{$ctype}) { - $want_ctype = 1; - last; + if (defined($content)) { + my $want_ctype = 0; + foreach my $ctype (@ctypes) { + if ($ids->{$storeid}->{content}->{$ctype}) { + $want_ctype = 1; + last; + } } + next if !$want_ctype; } - next if !$want_ctype; - + my $type = $ids->{$storeid}->{type}; $info->{$storeid} = {