mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +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