]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: fix driver name check for libxl driver
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 4 May 2020 16:41:46 +0000 (17:41 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 5 May 2020 14:57:02 +0000 (15:57 +0100)
The virConnectGetType() returns "Xen" for libxl, not "LIBXL".

This prevents users opening a connection to the libxl driver when using
the modular daemons.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_daemon_dispatch.c

index 5d1c6971c0bdacea5e32d7536c1e025d1bba1d63..6f67d2fb30166d8b94bf0be41934e6dac471e7e2 100644 (file)
@@ -2111,7 +2111,7 @@ remoteDispatchConnectOpen(virNetServerPtr server G_GNUC_UNUSED,
 
     VIR_DEBUG("Primary driver type is '%s'", type);
     if (STREQ(type, "QEMU") ||
-        STREQ(type, "LIBXL") ||
+        STREQ(type, "Xen") ||
         STREQ(type, "LXC") ||
         STREQ(type, "VBOX") ||
         STREQ(type, "bhyve") ||