if ((oneid = c_oneAllocateTemplate(templ)) < 0) {
oneError(conn, NULL, VIR_ERR_OPERATION_FAILED,
- _("Error submitting virtual machine to OpenNebula"));
+ "%s", _("Error submitting virtual machine to OpenNebula"));
VIR_FREE(templ);
return -1;
}
vm =virDomainFindByUUID(&driver->domains, dom->uuid);
if (!vm) {
oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
- _("no domain with matching uuid"));
+ "%s", _("no domain with matching uuid"));
goto return_point;
}
if (!vm->persistent) {
oneError(dom->conn, dom, VIR_ERR_INTERNAL_ERROR,
- _("cannot undefine transient domain"));
+ "%s", _("cannot undefine transient domain"));
goto return_point;
}
virDomainRemoveInactive(&driver->domains, vm);
if (c_oneShutdown(vm->pid)) {
oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
- _("Wrong state to perform action"));
+ "%s", _("Wrong state to perform action"));
goto return_point;
}
vm->state=VIR_DOMAIN_SHUTDOWN;
/* VM not running, delete the instance at ONE DB */
if(c_oneFinalize(vm->pid)){
oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
- _("Wrong state to perform action"));
+ "%s", _("Wrong state to perform action"));
goto return_point;
}
}
goto return_point;
}
oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
- _("Wrong state to perform action"));
+ "%s", _("Wrong state to perform action"));
goto return_point;
}
oneError(dom->conn,dom, VIR_ERR_OPERATION_INVALID,
- _("domain is not running"));
+ "%s", _("domain is not running"));
} else {
oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
_("no domain with matching id %d"), dom->id);
goto return_point;
}
oneError(dom->conn, dom, VIR_ERR_OPERATION_INVALID,
- _("Wrong state to perform action"));
+ "%s", _("Wrong state to perform action"));
goto return_point;
}
oneError(dom->conn,dom, VIR_ERR_OPERATION_INVALID,
- _("domain is not paused "));
+ "%s", _("domain is not paused"));
} else {
oneError(dom->conn, dom, VIR_ERR_INVALID_DOMAIN,
_("no domain with matching id %d"), dom->id);
if (conn->uri->server == NULL) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Missing server name in phyp:// URI"));
+ "%s", _("Missing server name in phyp:// URI"));
return VIR_DRV_OPEN_ERROR;
}
if (conn->uri->path == NULL) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Missing managed system name in phyp:// URI"));
+ "%s", _("Missing managed system name in phyp:// URI"));
return VIR_DRV_OPEN_ERROR;
}
if (conn->uri->user == NULL) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Missing username in phyp:// URI"));
+ "%s", _("Missing username in phyp:// URI"));
return VIR_DRV_OPEN_ERROR;
}
if (escape_specialcharacters(conn->uri->path, string, len) == -1) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Error parsing 'path'. Invalid characters."));
+ "%s", _("Error parsing 'path'. Invalid characters."));
goto failure;
}
if ((session = openSSHSession(conn, auth, &internal_socket)) == NULL) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Error while opening SSH session."));
+ "%s", _("Error while opening SSH session."));
goto failure;
}
//conn->uri->path = string;
LIBSSH2_ERROR_EAGAIN) ;
if (rc) {
PHYP_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
- _("Failure establishing SSH session."));
+ "%s", _("Failure establishing SSH session."));
goto disconnect;
}
if (!auth || !auth->cb) {
PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
- _("No authentication callback provided."));
+ "%s", _("No authentication callback provided."));
goto disconnect;
}
if (!hasPassphrase) {
PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
- _("Required credentials are not supported."));
+ "%s", _("Required credentials are not supported."));
goto disconnect;
}
if (res < 0) {
PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
- _("Unable to fetch credentials."));
+ "%s", _("Unable to fetch credentials."));
goto disconnect;
}
password = creds[0].result;
} else {
PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
- _("Unable to get password certificates"));
+ "%s", _("Unable to get password certificates"));
goto disconnect;
}
if (rc) {
PHYP_ERROR(conn, VIR_ERR_AUTH_FAILED,
- _("Authentication failed"));
+ "%s", _("Authentication failed"));
goto disconnect;
} else
goto exit;
domain_xml = xenDaemonDomainDumpXML (dom, 0, NULL);
if (! domain_xml) {
xenUnifiedError(dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
- _("failed to get XML representation of migrated domain"));
+ "%s", _("failed to get XML representation of migrated domain"));
goto failure;
}
dom_new = xenDaemonDomainDefineXML (dconn, domain_xml);
if (! dom_new) {
- xenUnifiedError (dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
- _("failed to define domain on destination host"));
+ xenUnifiedError(dconn, VIR_ERR_MIGRATE_PERSIST_FAILED,
+ "%s", _("failed to define domain on destination host"));
goto failure;
}