mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 17:47:15 +03:00
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:
parent
9e7cfcb7db
commit
fa23f9fcbb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user