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 <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:02 -03:00 committed by Michal Privoznik
parent 1c270a84e7
commit 80dacadf8e

View File

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