mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
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:
parent
4916297b46
commit
bda9b38917
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user