提交 6d25ed48 编写于 作者: L Luyao Huang 提交者: Cole Robinson

network: fix call virNetworkEventLifecycleNew when networkStartNetwork fail

When start a network fail, libvirt still call virNetworkEventLifecycleNew
to send a event.
Signed-off-by: NLuyao Huang <lhuang@redhat.com>
(cherry picked from commit 45d9ea5c)
上级 d54460f2
...@@ -3253,7 +3253,8 @@ static int networkCreate(virNetworkPtr net) ...@@ -3253,7 +3253,8 @@ static int networkCreate(virNetworkPtr net)
if (virNetworkCreateEnsureACL(net->conn, network->def) < 0) if (virNetworkCreateEnsureACL(net->conn, network->def) < 0)
goto cleanup; goto cleanup;
ret = networkStartNetwork(driver, network); if ((ret = networkStartNetwork(driver, network)) < 0)
goto cleanup;
event = virNetworkEventLifecycleNew(network->def->name, event = virNetworkEventLifecycleNew(network->def->name,
network->def->uuid, network->def->uuid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册