mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
OpenVZ: accept NULL as type for GetMaxVCPUs.
All of the other drivers that support the getMaxVcpus callback also accept a NULL value for type. Make openvz also accept a NULL value. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
776f527926
commit
1dac1b3726
@ -1000,9 +1000,10 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) {
|
||||
if (STRCASEEQ(type, "openvz"))
|
||||
return 1028; //OpenVZ has no limitation
|
||||
static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type)
|
||||
{
|
||||
if (type == NULL || STRCASEEQ(type, "openvz"))
|
||||
return 1028; /* OpenVZ has no limitation */
|
||||
|
||||
openvzError(conn, VIR_ERR_INVALID_ARG,
|
||||
_("unknown type '%s'"), type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user