]> git.proxmox.com Git - qemu-server.git/commitdiff
api: fix using import-from with SCSI disks
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 31 Jan 2024 10:53:59 +0000 (11:53 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 31 Jan 2024 11:30:37 +0000 (12:30 +0100)
by fixing the SCSI feature compatibility check helper. The helper is
also called for disks using import-from, so it has to use the extended
schema when parsing the drive.

Fixes: d1feab4a ("fix #4957: add vendor and product information passthrough for SCSI-Disks")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm

index cdc8f7ac57ffc4b560bfba3bd93e472237d32f0f..69c5896af48b1374f52ba0ee8c88e0f109cb43d5 100644 (file)
@@ -699,7 +699,7 @@ my $check_vm_modify_config_perm = sub {
 sub assert_scsi_feature_compatibility {
     my ($opt, $conf, $storecfg, $drive_attributes) = @_;
 
-    my $drive = PVE::QemuServer::Drive::parse_drive($opt, $drive_attributes);
+    my $drive = PVE::QemuServer::Drive::parse_drive($opt, $drive_attributes, 1);
 
     my $machine_type = PVE::QemuServer::get_vm_machine($conf, undef, $conf->{arch});
     my $machine_version = PVE::QemuServer::Machine::extract_version(