Skip to content

Commit

Permalink
lxd/instance/drivers/qemu: Add missing node name overflow handling
Browse files Browse the repository at this point in the history
Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Nov 13, 2024
1 parent d389056 commit 668d666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4113,7 +4113,7 @@ func (d *qemu) addDriveConfig(qemuDev map[string]string, bootIndexes map[string]
revert := revert.New()
defer revert.Fail()

nodeName := fmt.Sprintf("%s%s", qemuDeviceNamePrefix, escapedDeviceName)
nodeName := qemuDeviceNameOrID(qemuDeviceNamePrefix, escapedDeviceName, "", qemuDeviceNameMaxLength)

if isRBDImage {
secretID := fmt.Sprintf("pool_%s_%s", blockDev["pool"], blockDev["user"])
Expand Down

0 comments on commit 668d666

Please sign in to comment.