Skip to content

Commit

Permalink
incusd/instance/qemu: Fix device_id warning on 9.2.x
Browse files Browse the repository at this point in the history
Closes #1536

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jan 23, 2025
1 parent 32a5f13 commit 8143742
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4280,6 +4280,7 @@ func (d *qemu) addDriveConfig(qemuDev map[string]any, bootIndexes map[string]int
}

qemuDev["id"] = fmt.Sprintf("%s%s", qemuDeviceIDPrefix, escapedDeviceName)
qemuDev["device_id"] = fmt.Sprintf("%s%s", qemuDeviceIDPrefix, escapedDeviceName)
qemuDev["drive"] = blockDev["node-name"].(string)
qemuDev["serial"] = fmt.Sprintf("%s%s", qemuBlockDevIDPrefix, escapedDeviceName)

Expand Down

0 comments on commit 8143742

Please sign in to comment.