From 918d09150eb9198d18e282b5f7c7fbfe60770faa Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 18 Mar 2016 11:42:32 +0100 Subject: [PATCH] clanup: qemu_drive_options is only used inside the one function and it doesn't contain 'bootindex' --- PVE/QemuServer.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index c936f64e..b20c63f5 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1294,7 +1294,6 @@ sub get_initiator_name { return $initiator; } -my @qemu_drive_options = qw(heads secs cyls trans media format cache snapshot rerror werror aio discard iops iops_rd iops_wr iops_max iops_rd_max iops_wr_max serial); sub print_drive_full { my ($storecfg, $vmid, $drive) = @_; @@ -1317,8 +1316,8 @@ sub print_drive_full { } my $opts = ''; + my @qemu_drive_options = qw(heads secs cyls trans media format cache snapshot rerror werror aio discard iops iops_rd iops_wr iops_max iops_rd_max iops_wr_max serial); foreach my $o (@qemu_drive_options) { - next if $o eq 'bootindex'; $opts .= ",$o=$drive->{$o}" if $drive->{$o}; }