mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
vmware: set the driver version
Since commit 7457cbe8 the vmware driver version isn't set anymore. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
6d7a287c5a
commit
2fe658ad90
@ -259,7 +259,6 @@ vmwareParseVersionStr(int type, const char *verbuf, unsigned long *version)
|
||||
int
|
||||
vmwareExtractVersion(struct vmware_driver *driver)
|
||||
{
|
||||
unsigned long version = 0;
|
||||
int ret = -1;
|
||||
virCommandPtr cmd = NULL;
|
||||
char * outbuf = NULL;
|
||||
@ -298,7 +297,7 @@ vmwareExtractVersion(struct vmware_driver *driver)
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (vmwareParseVersionStr(driver->type, outbuf, &version) < 0)
|
||||
if (vmwareParseVersionStr(driver->type, outbuf, &driver->version) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
|
@ -48,7 +48,7 @@ struct vmware_driver {
|
||||
virDomainXMLOptionPtr xmlopt;
|
||||
|
||||
virDomainObjListPtr domains;
|
||||
int version;
|
||||
unsigned long version;
|
||||
int type;
|
||||
char *vmrun;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user