From fa23f9fcbb428722726cd986ab0f120fc1330a35 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 30 Sep 2013 21:19:13 -0500 Subject: [PATCH] VMware: Do version detection earlier 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 79954e08a5..0e7a37f493 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;