VMware: Do version detection earlier

Do VMware version detection earlier as future patches will need the
version information to populate capabilities correctly.
This commit is contained in:
Doug Goldstein 2013-09-30 21:19:13 -05:00
parent 9e7cfcb7db
commit fa23f9fcbb

View File

@ -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;