phyp needs a server to connect to, so use this macro in order to reuse
code.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org(a)gmail.com>
---
src/phyp/phyp_driver.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 67ce7903ba..beca1c6fc7 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -1141,11 +1141,7 @@ 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;
- }
+ VIR_DRV_CONN_CHECK_SERVER;
if (VIR_ALLOC(phyp_driver) < 0)
goto failure;
--
2.17.1