mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
hyperv_driver: Set remoteOnly member of virConnectDriver
HyperV 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
bda9b38917
commit
1c270a84e7
@ -128,13 +128,6 @@ hypervConnectOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||
|
||||
virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
|
||||
|
||||
/* Require server part */
|
||||
if (conn->uri->server == NULL) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||
_("URI is missing the server part"));
|
||||
return VIR_DRV_OPEN_ERROR;
|
||||
}
|
||||
|
||||
/* Require auth */
|
||||
if (auth == NULL || auth->cb == NULL) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||
@ -1662,6 +1655,7 @@ hypervDebugHandler(const char *message, debug_level_e level,
|
||||
|
||||
|
||||
static virConnectDriver hypervConnectDriver = {
|
||||
.remoteOnly = true,
|
||||
.uriSchemes = (const char *[]){ "hyperv", NULL },
|
||||
.hypervisorDriver = &hypervHypervisorDriver,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user