From: Marcos Paulo de Souza Date: Tue, 10 Jul 2018 23:31:02 +0000 (-0300) Subject: phyp_driver: Set remoteOnly member of virConnectDriver X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=80dacadf8e545c4684072b9062a3ddedd546bd16;p=libvirt.git 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 --- 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,