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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user