storage_info: fix content filter

List all storages if $content filter is undefined.
This commit is contained in:
Dietmar Maurer
2015-08-10 10:05:01 +02:00
parent 9f20a8a643
commit d73060becd

View File

@ -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} = {