From 80dacadf8e545c4684072b9062a3ddedd546bd16 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Tue, 10 Jul 2018 20:31:02 -0300 Subject: [PATCH] phyp_driver: Set remoteOnly member of virConnectDriver Phyp 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 Signed-off-by: Michal Privoznik --- src/phyp/phyp_driver.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index 67ce7903ba..d78de83231 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -1141,12 +1141,6 @@ phypConnectOpen(virConnectPtr conn, virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR); - if (conn->uri->server == NULL) { - virReportError(VIR_ERR_INTERNAL_ERROR, - "%s", _("Missing server name in phyp:// URI")); - return VIR_DRV_OPEN_ERROR; - } - if (VIR_ALLOC(phyp_driver) < 0) goto failure; @@ -3760,6 +3754,7 @@ static virInterfaceDriver phypInterfaceDriver = { }; static virConnectDriver phypConnectDriver = { + .remoteOnly = true, .uriSchemes = (const char *[]){ "phyp", NULL }, .hypervisorDriver = &phypHypervisorDriver, .interfaceDriver = &phypInterfaceDriver, -- 2.47.2