]> git.proxmox.com Git - qemu-server.git/commit
fix #5363: cloudinit: make creation of scsi cloudinit discs possible again
authorHannes Duerr <h.duerr@proxmox.com>
Wed, 10 Apr 2024 11:17:29 +0000 (13:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Apr 2024 11:56:41 +0000 (13:56 +0200)
commit7e2065956f4cc5c15f947f0df431f46861b0a0c0
treea7cb23e88a22a3709ca847553bc053647166890d
parentf0923f49e94c9561302a23652cd156363fb4e430
fix #5363: cloudinit: make creation of scsi cloudinit discs possible again

Upon obtaining the device type, a check is performed to determine if it
is a CD drive. It is important to note that Cloudinit drives are always
assigned as CD drives. If the drive has not yet been allocated, the test
will fail due to the unset cd attribute.
To avoid this, an explicit check is now performed to determine if it is
a Cloudinit drive that has not yet been assigned.

Fixes: d1feab4 ("fix #4957: add vendor and product information passthrough for SCSI-Disks")
Signed-off-by: Hannes Duerr <h.duerr@proxmox.com>
PVE/QemuServer/Drive.pm