mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user