mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +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,
|
||||
net->data.network.name);
|
||||
if (!network) {
|
||||
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
|
||||
_("Network '%s' not found"),
|
||||
net->data.network.name);
|
||||
goto error;
|
||||
}
|
||||
brname = virNetworkGetBridgeName(network);
|
||||
|
Loading…
Reference in New Issue
Block a user