white space cleanups
This commit is contained in:
@ -1008,9 +1008,9 @@ sub storage_info {
|
|||||||
my $ids = $cfg->{ids};
|
my $ids = $cfg->{ids};
|
||||||
|
|
||||||
my $info = {};
|
my $info = {};
|
||||||
|
|
||||||
my @ctypes = PVE::Tools::split_list($content);
|
my @ctypes = PVE::Tools::split_list($content);
|
||||||
|
|
||||||
my $slist = [];
|
my $slist = [];
|
||||||
foreach my $storeid (keys %$ids) {
|
foreach my $storeid (keys %$ids) {
|
||||||
|
|
||||||
@ -1026,7 +1026,7 @@ sub storage_info {
|
|||||||
}
|
}
|
||||||
next if !$want_ctype;
|
next if !$want_ctype;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $type = $ids->{$storeid}->{type};
|
my $type = $ids->{$storeid}->{type};
|
||||||
|
|
||||||
$info->{$storeid} = {
|
$info->{$storeid} = {
|
||||||
@ -1059,9 +1059,9 @@ sub storage_info {
|
|||||||
eval { ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache); };
|
eval { ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache); };
|
||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
next if !$active;
|
next if !$active;
|
||||||
$info->{$storeid}->{total} = int ($total);
|
$info->{$storeid}->{total} = int($total);
|
||||||
$info->{$storeid}->{avail} = int ($avail);
|
$info->{$storeid}->{avail} = int($avail);
|
||||||
$info->{$storeid}->{used} = int ($used);
|
$info->{$storeid}->{used} = int($used);
|
||||||
$info->{$storeid}->{active} = $active;
|
$info->{$storeid}->{active} = $active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user