storage_info: fix content filter
List all storages if $content filter is undefined.
This commit is contained in:
@ -890,14 +890,16 @@ sub storage_info {
|
|||||||
|
|
||||||
next if !storage_check_enabled($cfg, $storeid, undef, 1);
|
next if !storage_check_enabled($cfg, $storeid, undef, 1);
|
||||||
|
|
||||||
my $want_ctype = 0;
|
if (defined($content)) {
|
||||||
foreach my $ctype (@ctypes) {
|
my $want_ctype = 0;
|
||||||
if ($ids->{$storeid}->{content}->{$ctype}) {
|
foreach my $ctype (@ctypes) {
|
||||||
$want_ctype = 1;
|
if ($ids->{$storeid}->{content}->{$ctype}) {
|
||||||
last;
|
$want_ctype = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
next if !$want_ctype;
|
||||||
}
|
}
|
||||||
next if !$want_ctype;
|
|
||||||
|
|
||||||
my $type = $ids->{$storeid}->{type};
|
my $type = $ids->{$storeid}->{type};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user