whitespace cleanups

This commit is contained in:
Dietmar Maurer 2013-09-05 07:44:52 +02:00
parent 657533535d
commit fa8ea931ed

View File

@ -702,17 +702,17 @@ my $vmconfig_delete_option = sub {
}
my $unplugwarning = "";
if($conf->{ostype} && $conf->{ostype} eq 'l26'){
if ($conf->{ostype} && $conf->{ostype} eq 'l26') {
$unplugwarning = "<br>verify that you have acpiphp && pci_hotplug modules loaded in your guest VM";
}elsif($conf->{ostype} && $conf->{ostype} eq 'l24'){
} elsif ($conf->{ostype} && $conf->{ostype} eq 'l24') {
$unplugwarning = "<br>kernel 2.4 don't support hotplug, please disable hotplug in options";
}elsif(!$conf->{ostype} || ($conf->{ostype} && $conf->{ostype} eq 'other')){
} elsif (!$conf->{ostype} || ($conf->{ostype} && $conf->{ostype} eq 'other')) {
$unplugwarning = "<br>verify that your guest support acpi hotplug";
}
if($opt eq 'tablet'){
if ($opt eq 'tablet') {
PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt);
}else{
} else {
die "error hot-unplug $opt $unplugwarning" if !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
}