mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
ESX raise error if UUID parse failed
* src/esx/esx_util.c: let esxUtil_GetConfigUUID() report an error if virUUIDParse() fails
This commit is contained in:
parent
ad866fd196
commit
d5df676938
@ -393,7 +393,11 @@ esxUtil_GetConfigUUID(virConnectPtr conn, virConfPtr conf, const char *name,
|
||||
}
|
||||
}
|
||||
|
||||
virUUIDParse(value->str, uuid);
|
||||
if (virUUIDParse(value->str, uuid) < 0) {
|
||||
ESX_ERROR(conn, VIR_ERR_INTERNAL_ERROR,
|
||||
"Could not parse UUID from string '%s'", value->str);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user