mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 01:04:59 +00:00
openvzLoadDomains: don't ignore failing virUUIDFormat
* src/openvz/openvz_conf.c (openvzLoadDomains): Diagnose failure of virUUIDFormat.
This commit is contained in:
parent
148114e325
commit
294adef356
@ -908,7 +908,11 @@ static int
|
||||
openvzSetUUID(int vpsid){
|
||||
unsigned char uuid[VIR_UUID_BUFLEN];
|
||||
|
||||
virUUIDGenerate(uuid);
|
||||
if (virUUIDGenerate(uuid)) {
|
||||
openvzError(NULL, VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("Failed to generate UUID"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
return openvzSetDefinedUUID(vpsid, uuid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user