From: Cole Robinson Date: Wed, 6 Mar 2019 23:22:01 +0000 (-0500) Subject: conf: domcaps: Don't format XML on report=false X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a994541b8afc3c135e21847f39ef1a3da76f9107;p=libvirt.git 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 Signed-off-by: Cole Robinson --- diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index f45a3bcc3d..5a8f48da61 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -330,6 +330,11 @@ virDomainCapsEnumFormat(virBufferPtr buf, int ret = -1; size_t i; + if (!capsEnum->report) { + ret = 0; + goto cleanup; + } + virBufferAsprintf(buf, "values) { virBufferAddLit(buf, "/>\n");