mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00:00
Avoid raising an internal error
* src/qemu_conf.c: when connecting an interface if it reference an undefined network, then we used to raise an internal error.
This commit is contained in:
parent
f093e7ad6b
commit
b0e48bfdfe
@ -716,9 +716,6 @@ qemudNetworkIfaceConnect(virConnectPtr conn,
|
|||||||
virNetworkPtr network = virNetworkLookupByName(conn,
|
virNetworkPtr network = virNetworkLookupByName(conn,
|
||||||
net->data.network.name);
|
net->data.network.name);
|
||||||
if (!network) {
|
if (!network) {
|
||||||
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
|
|
||||||
_("Network '%s' not found"),
|
|
||||||
net->data.network.name);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
brname = virNetworkGetBridgeName(network);
|
brname = virNetworkGetBridgeName(network);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user