mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
conf: domcaps: Don't format XML on report=false
After this, newly added enums will not automatically show up in driver output unless the driver code specifically sets report=true Acked-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
8645a13dec
commit
a994541b8a
@ -330,6 +330,11 @@ virDomainCapsEnumFormat(virBufferPtr buf,
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
if (!capsEnum->report) {
|
||||||
|
ret = 0;
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
virBufferAsprintf(buf, "<enum name='%s'", capsEnumName);
|
virBufferAsprintf(buf, "<enum name='%s'", capsEnumName);
|
||||||
if (!capsEnum->values) {
|
if (!capsEnum->values) {
|
||||||
virBufferAddLit(buf, "/>\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user