mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-27 18:03:50 +03: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){
|
openvzSetUUID(int vpsid){
|
||||||
unsigned char uuid[VIR_UUID_BUFLEN];
|
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);
|
return openvzSetDefinedUUID(vpsid, uuid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user