提交 bda9b389 编写于 作者: M Marcos Paulo de Souza 提交者: Michal Privoznik

esx_driver: Set remoteOnly member of virConnectDriver

ESX driver can't function without a server being informed, so this flag
makes libvirt to check for a valid server before calling connectOpen.
Signed-off-by: NMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 4916297b
......@@ -854,13 +854,6 @@ esxConnectOpen(virConnectPtr conn, virConnectAuthPtr auth,
conn->uri->path, conn->uri->scheme);
}
/* Require server part */
if (!conn->uri->server) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
_("URI is missing the server part"));
return VIR_DRV_OPEN_ERROR;
}
/* Require auth */
if (!auth || !auth->cb) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
......@@ -5213,6 +5206,7 @@ static virHypervisorDriver esxHypervisorDriver = {
static virConnectDriver esxConnectDriver = {
.remoteOnly = true,
.uriSchemes = (const char *[]){ "vpx", "esx", "gsx", NULL },
.hypervisorDriver = &esxHypervisorDriver,
.interfaceDriver = &esxInterfaceDriver,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册