提交 6af0c3e8 编写于 作者: O Osier Yang

lxc: Fix incorrect changes on error codes.

Fix incorrect changes introduced by commit 6ac47762.
上级 c2c713dd
...@@ -1786,7 +1786,7 @@ lxcDomainCreateAndStart(virConnectPtr conn, ...@@ -1786,7 +1786,7 @@ lxcDomainCreateAndStart(virConnectPtr conn,
goto cleanup; goto cleanup;
if ((def->nets != NULL) && !(driver->have_netns)) { if ((def->nets != NULL) && !(driver->have_netns)) {
lxcError(VIR_ERR_OPERATION_INVALID, lxcError(VIR_ERR_CONFIG_UNSUPPORTED,
"%s", _("System lacks NETNS support")); "%s", _("System lacks NETNS support"));
goto cleanup; goto cleanup;
} }
...@@ -2519,8 +2519,7 @@ static int ...@@ -2519,8 +2519,7 @@ static int
lxcDomainInterfaceStats(virDomainPtr dom, lxcDomainInterfaceStats(virDomainPtr dom,
const char *path ATTRIBUTE_UNUSED, const char *path ATTRIBUTE_UNUSED,
struct _virDomainInterfaceStats *stats ATTRIBUTE_UNUSED) struct _virDomainInterfaceStats *stats ATTRIBUTE_UNUSED)
lxcError(VIR_ERR_OPERATION_INVALID, "%s", lxcError(VIR_ERR_NO_SUPPORT, "%s", __FUNCTION__);
_("interface stats not implemented on this platform"));
return -1; return -1;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册