Skip to content

Commit

Permalink
lxd/instance/drivers/qemu: Add node name handling
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit d08911f6f54342cf092865463f05ddb2d41514e6)
Signed-off-by: Kadin Sayani <[email protected]>
License: Apache-2.0
  • Loading branch information
stgraber authored and kadinsayani committed Nov 13, 2024
1 parent f7fe94b commit 100794a
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 @@ -4115,7 +4115,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 := d.blockNodeName(escapedDeviceName)

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

0 comments on commit 100794a

Please sign in to comment.