mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-09-05 01:45:04 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user