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: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Marcos Paulo de Souza 2018-07-10 20:31:00 -03:00 committed by Michal Privoznik
parent 4916297b46
commit bda9b38917

View File

@ -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,