white space cleanups: correctly intend code

This commit is contained in:
Dietmar Maurer
2015-10-01 06:28:22 +02:00
parent 180c8b020c
commit 746e530f72

View File

@ -1170,24 +1170,24 @@ sub foreach_volid {
# bash completion helper
sub complete_storage {
my ($cmdname, $pname, $cvalue) = @_;
my ($cmdname, $pname, $cvalue) = @_;
my $cfg = PVE::Storage::config();
my $cfg = PVE::Storage::config();
return $cmdname eq 'add' ? [] : [ PVE::Storage::storage_ids($cfg) ];
return $cmdname eq 'add' ? [] : [ PVE::Storage::storage_ids($cfg) ];
}
sub complete_storage_enabled {
my ($cmdname, $pname, $cvalue) = @_;
my ($cmdname, $pname, $cvalue) = @_;
my $res = [];
my $res = [];
my $cfg = PVE::Storage::config();
foreach my $sid (keys %{$cfg->{ids}}) {
next if !storage_check_enabled($cfg, $sid, undef, 1);
push @$res, $sid;
}
return $res;
my $cfg = PVE::Storage::config();
foreach my $sid (keys %{$cfg->{ids}}) {
next if !storage_check_enabled($cfg, $sid, undef, 1);
push @$res, $sid;
}
return $res;
}
1;