mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
Don't expose 'none' machine type to capabilities
The 'none' machine type is something only intended for use by libvirt probing capabilities. It isn't something that is useful for running real VM instances. As such it should not be exposed to users in the capabilities. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
f41830680e
commit
cbb6ec42e2
@ -2137,6 +2137,8 @@ virQEMUCapsProbeQMPMachineTypes(virQEMUCapsPtr qemuCaps,
|
||||
goto cleanup;
|
||||
|
||||
for (i = 0; i < nmachines; i++) {
|
||||
if (STREQ(machines[i]->name, "none"))
|
||||
continue;
|
||||
qemuCaps->nmachineTypes++;
|
||||
if (VIR_STRDUP(qemuCaps->machineAliases[qemuCaps->nmachineTypes -1],
|
||||
machines[i]->alias) < 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user