followup: code cleanup and some comments

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-10-23 11:39:03 +02:00
parent d1cbb1a93b
commit a034e3d624

View File

@ -1898,8 +1898,9 @@ sub print_drivedevice_full {
$path = PVE::Storage::path($storecfg, $drive->{file});
}
if($path =~ m/^iscsi\:\/\// &&
!qemu_machine_feature_enabled($machine_type, undef, 4, 1)) {
# for compatibility only, we prefer scsi-hd (#2408, #2355, #2380)
if ($path =~ m/^iscsi\:\/\// &&
!qemu_machine_feature_enabled($machine_type, undef, 4, 1)) {
$devicetype = 'generic';
}
}