]> xenbits.xensource.com Git - libvirt.git/commitdiff
phyp_driver: Set remoteOnly member of virConnectDriver
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Tue, 10 Jul 2018 23:31:02 +0000 (20:31 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jul 2018 11:16:59 +0000 (13:16 +0200)
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>
src/phyp/phyp_driver.c

index 67ce7903baaf33aad1823ed94d68d56afb1d09e5..d78de832312c4f55c972098828df3302c1188f45 100644 (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,