[PATCH 2/2] VMware: Do version detection earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do VMware version detection earlier as future patches will need the
version information to populate capabilities correctly.
---
 src/vmware/vmware_driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/vmware/vmware_driver.c b/src/vmware/vmware_driver.c
index 79954e0..0e7a37f 100644
--- a/src/vmware/vmware_driver.c
+++ b/src/vmware/vmware_driver.c
@@ -166,6 +166,9 @@ vmwareConnectOpen(virConnectPtr conn,
         goto cleanup;
     }
 
+    if (vmwareExtractVersion(driver) < 0)
+        goto cleanup;
+
     if (!(driver->domains = virDomainObjListNew()))
         goto cleanup;
 
@@ -178,9 +181,6 @@ vmwareConnectOpen(virConnectPtr conn,
     if (vmwareLoadDomains(driver) < 0)
         goto cleanup;
 
-    if (vmwareExtractVersion(driver) < 0)
-        goto cleanup;
-
     conn->privateData = driver;
 
     return VIR_DRV_OPEN_SUCCESS;
-- 
1.8.1.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]