mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuAgentGetInterfaces: Don't error out on missing HW address
Now that we allow HW address to be not present on our RPC layer, don't error out if qemu-ga hasn't provided any. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
50780207ef
commit
100fb08cee
@ -2054,13 +2054,6 @@ qemuAgentGetInterfaces(qemuAgentPtr mon,
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
hwaddr = virJSONValueObjectGetString(tmp_iface, "hardware-address");
|
hwaddr = virJSONValueObjectGetString(tmp_iface, "hardware-address");
|
||||||
if (!hwaddr) {
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
|
||||||
_("qemu agent didn't provide"
|
|
||||||
" 'hardware-address' field"));
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (VIR_STRDUP(iface->hwaddr, hwaddr) < 0)
|
if (VIR_STRDUP(iface->hwaddr, hwaddr) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user