1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

incusd/instance/qemu: Properly initialize connected status

Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
This commit is contained in:
Benjamin Somers
2026-01-23 21:56:58 +00:00
parent 945a885af9
commit ee2fc45f2d

View File

@@ -4929,7 +4929,7 @@ func (d *qemu) addNetDevConfig(busName string, qemuDev map[string]any, bootIndex
defer reverter.Fail()
var devName, nicName, devHwaddr, pciSlotName, pciIOMMUGroup, vDPADevName, vhostVDPAPath, maxVQP string
var connected bool
connected := true
for _, nicItem := range nicConfig {
if nicItem.Key == "devName" {
devName = nicItem.Value