提交 2d626c7d 编写于 作者: G Guido Günther

OpenVZ: Fix some overwritten error codes

Don't overwrite errors during domain creation/definition to ease
tracking down problems.
上级 50a7c59b
......@@ -58,6 +58,7 @@
#include "memory.h"
#include "bridge.h"
#include "files.h"
#include "logging.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
......@@ -210,8 +211,7 @@ static int openvzSetInitialConfig(virDomainDefPtr vmdef)
else
{
if (openvzDomainDefineCmd(prog, OPENVZ_MAX_ARG, vmdef) < 0) {
openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Error creating command for container"));
VIR_ERROR0(_("Error creating command for container"));
goto cleanup;
}
......@@ -878,8 +878,7 @@ openvzDomainDefineXML(virConnectPtr conn, const char *xml)
vm->persistent = 1;
if (openvzSetInitialConfig(vm->def) < 0) {
openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Error creating initial configuration"));
VIR_ERROR0(_("Error creating initial configuration"));
goto cleanup;
}
......@@ -967,8 +966,7 @@ openvzDomainCreateXML(virConnectPtr conn, const char *xml,
vm->persistent = 1;
if (openvzSetInitialConfig(vm->def) < 0) {
openvzError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Error creating initial configuration"));
VIR_ERROR0(_("Error creating initial configuration"));
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册