fix whitespace/indent

This commit is contained in:
Fabian Grünbichler 2016-06-17 16:12:27 +02:00 committed by Dietmar Maurer
parent 89719f9887
commit 86638cc2dc

View File

@ -230,26 +230,26 @@ sub sync_disks {
my $sharedvm = 1; my $sharedvm = 1;
my @sids = PVE::Storage::storage_ids($self->{storecfg}); my @sids = PVE::Storage::storage_ids($self->{storecfg});
foreach my $storeid (@sids) { foreach my $storeid (@sids) {
my $scfg = PVE::Storage::storage_config($self->{storecfg}, $storeid); my $scfg = PVE::Storage::storage_config($self->{storecfg}, $storeid);
next if $scfg->{shared}; next if $scfg->{shared};
next if !PVE::Storage::storage_check_enabled($self->{storecfg}, $storeid, undef, 1); next if !PVE::Storage::storage_check_enabled($self->{storecfg}, $storeid, undef, 1);
# get list from PVE::Storage (for unused volumes) # get list from PVE::Storage (for unused volumes)
my $dl = PVE::Storage::vdisk_list($self->{storecfg}, $storeid, $vmid); my $dl = PVE::Storage::vdisk_list($self->{storecfg}, $storeid, $vmid);
next if @{$dl->{$storeid}} == 0; next if @{$dl->{$storeid}} == 0;
# check if storage is available on target node # check if storage is available on target node
PVE::Storage::storage_check_node($self->{storecfg}, $storeid, $self->{node}); PVE::Storage::storage_check_node($self->{storecfg}, $storeid, $self->{node});
$sharedvm = 0; # there is a non-shared disk $sharedvm = 0; # there is a non-shared disk
PVE::Storage::foreach_volid($dl, sub { PVE::Storage::foreach_volid($dl, sub {
my ($volid, $sid, $volname) = @_; my ($volid, $sid, $volname) = @_;
$volhash->{$volid} = 1; $volhash->{$volid} = 1;
}); });
} }
my $test_volid = sub { my $test_volid = sub {
my ($volid, $is_cdrom, $snapname) = @_; my ($volid, $is_cdrom, $snapname) = @_;