storage_info: fix content filter
List all storages if $content filter is undefined.
This commit is contained in:
@ -890,6 +890,7 @@ sub storage_info {
|
|||||||
|
|
||||||
next if !storage_check_enabled($cfg, $storeid, undef, 1);
|
next if !storage_check_enabled($cfg, $storeid, undef, 1);
|
||||||
|
|
||||||
|
if (defined($content)) {
|
||||||
my $want_ctype = 0;
|
my $want_ctype = 0;
|
||||||
foreach my $ctype (@ctypes) {
|
foreach my $ctype (@ctypes) {
|
||||||
if ($ids->{$storeid}->{content}->{$ctype}) {
|
if ($ids->{$storeid}->{content}->{$ctype}) {
|
||||||
@ -898,6 +899,7 @@ sub storage_info {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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